summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-04-27 11:08:31 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-04-27 11:12:08 +0100
commit28d4943a02ec064fb8e83ab8cef3ae7051b982a1 (patch)
treefd171d46d0e31c7468ad38b3bf77d242fbfa5500
parent39137322c193bf555c4be9f97c4d4eeed149cdaf (diff)
downloadlibsoup-28d4943a02ec064fb8e83ab8cef3ae7051b982a1.tar.gz
libsoup: Fix some old-style function declarations
Eliminate some compiler warnings. https://bugzilla.gnome.org/show_bug.cgi?id=748514
-rw-r--r--libsoup/soup-content-sniffer.c2
-rw-r--r--tests/test-utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
index 5659af9a..e3dfb78d 100644
--- a/libsoup/soup-content-sniffer.c
+++ b/libsoup/soup-content-sniffer.c
@@ -898,7 +898,7 @@ soup_content_sniffer_session_feature_init (SoupSessionFeatureInterface *feature_
* Since: 2.28
**/
SoupContentSniffer *
-soup_content_sniffer_new ()
+soup_content_sniffer_new (void)
{
return g_object_new (SOUP_TYPE_CONTENT_SNIFFER, NULL);
}
diff --git a/tests/test-utils.c b/tests/test-utils.c
index 3a717ad4..9c742060 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -581,7 +581,7 @@ create_cancel_data (SoupRequest *req,
return cancel_data;
}
-static void inline
+inline static void
cancel_message_or_cancellable (CancelData *cancel_data)
{
if (cancel_data->flags & SOUP_TEST_REQUEST_CANCEL_MESSAGE) {