From 9427d27e652b32e473d7f32a48189317dbe43a6a Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 6 Sep 2010 11:44:14 +0100 Subject: examples: Fix compiler warnings --- examples/get-flickr-favorites.c | 2 +- examples/lastfm-shout.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/get-flickr-favorites.c b/examples/get-flickr-favorites.c index 78451d9..5d4e802 100644 --- a/examples/get-flickr-favorites.c +++ b/examples/get-flickr-favorites.c @@ -44,7 +44,7 @@ get_xml (RestProxyCall *call) rest_proxy_call_get_payload_length (call)); if (!flickr_proxy_is_successful (root, &error)) - g_error (error->message); + g_error ("%s", error->message); g_object_unref (call); g_object_unref (parser); diff --git a/examples/lastfm-shout.c b/examples/lastfm-shout.c index 471b045..b11b716 100644 --- a/examples/lastfm-shout.c +++ b/examples/lastfm-shout.c @@ -45,7 +45,7 @@ get_xml (RestProxyCall *call) rest_proxy_call_get_payload_length (call)); if (!lastfm_proxy_is_successful (root, &error)) - g_error (error->message); + g_error ("%s", error->message); g_object_unref (call); g_object_unref (parser); @@ -99,7 +99,7 @@ main (int argc, char **argv) if (userid == NULL) { g_print ("Need a user ID to send a shout out to\n\n"); - g_print (g_option_context_get_help (context, TRUE, NULL)); + g_print ("%s", g_option_context_get_help (context, TRUE, NULL)); return 1; } -- cgit v1.2.1