[libsoup] Don't use C++ comments as libsoup uses C89
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Don't use C++ comments as libsoup uses C89
- Date: Thu, 16 Nov 2017 15:10:35 +0000 (UTC)
commit 6aa8d307558da4697ed510d888abab3fc0209afc
Author: Tomas Popela <tpopela redhat com>
Date: Thu Nov 16 15:07:08 2017 +0100
Don't use C++ comments as libsoup uses C89
libsoup/soup-cache.c | 4 ++--
tests/server-test.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index dbbc71f..5964d60 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -928,7 +928,7 @@ soup_cache_finalize (GObject *object)
priv = SOUP_CACHE (object)->priv;
- // Cannot use g_hash_table_foreach as callbacks must not modify the hash table
+ /* Cannot use g_hash_table_foreach as callbacks must not modify the hash table */
entries = g_hash_table_get_values (priv->cache);
g_list_foreach (entries, remove_cache_item, object);
g_list_free (entries);
@@ -1338,7 +1338,7 @@ soup_cache_clear (SoupCache *cache)
g_return_if_fail (SOUP_IS_CACHE (cache));
g_return_if_fail (cache->priv->cache);
- // Cannot use g_hash_table_foreach as callbacks must not modify the hash table
+ /* Cannot use g_hash_table_foreach as callbacks must not modify the hash table */
entries = g_hash_table_get_values (cache->priv->cache);
g_list_foreach (entries, clear_cache_item, cache);
g_list_free (entries);
diff --git a/tests/server-test.c b/tests/server-test.c
index 135d4b6..cf132b3 100644
--- a/tests/server-test.c
+++ b/tests/server-test.c
@@ -365,7 +365,7 @@ multi_server_callback (SoupServer *server, SoupMessage *msg,
g_assert_cmpint (g_inet_socket_address_get_port (iaddr), ==, uri->port);
- // FIXME ssl
+ /* FIXME ssl */
soup_message_set_response (msg, "text/plain",
SOUP_MEMORY_TAKE, uristr, strlen (uristr));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]