summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2010-09-06 11:44:14 +0100
committerRob Bradford <rob@linux.intel.com>2010-09-06 11:48:31 +0100
commit9427d27e652b32e473d7f32a48189317dbe43a6a (patch)
tree9e9a0231b41dbc35fa7c88e41ab8233290107042 /examples
parentfad81b4ee35367b4c0c26fd35965852d726f4b64 (diff)
examples: Fix compiler warnings
Diffstat (limited to 'examples')
-rw-r--r--examples/get-flickr-favorites.c2
-rw-r--r--examples/lastfm-shout.c4
2 files changed, 3 insertions, 3 deletions
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;
}