summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/lastfm-shout.c2
-rw-r--r--examples/post-twitter-media.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/lastfm-shout.c b/examples/lastfm-shout.c
index 254ed63..e852e01 100644
--- a/examples/lastfm-shout.c
+++ b/examples/lastfm-shout.c
@@ -79,7 +79,7 @@ main (int argc, char **argv)
RestProxy *proxy;
RestProxyCall *call;
RestXmlNode *root;
- char *token, *url, *userid = NULL, *session = NULL;;
+ char *token, *url, *userid = NULL, *session = NULL;
GOptionEntry entries[] = {
{ "session", 's', 0, G_OPTION_ARG_STRING, &session, "Session key (optional)", "KEY" },
{ "user", 'u', 0, G_OPTION_ARG_STRING, &userid, "User to send a message to", "USERNAME" },
diff --git a/examples/post-twitter-media.c b/examples/post-twitter-media.c
index ad3f4d5..afae309 100644
--- a/examples/post-twitter-media.c
+++ b/examples/post-twitter-media.c
@@ -32,6 +32,8 @@ main (int argc, char **argv)
RestParam *img_param;
GError *error = NULL;
char pin[256];
+ gsize length;
+ gchar *contents;
if (argc != 2) {
g_printerr ("$ post-twitter-media \"message\"\n");
@@ -64,8 +66,6 @@ main (int argc, char **argv)
/* In order to send an image to twitter, we first need to load it ourselves. */
- gsize length;
- gchar *contents;
if (!g_file_get_contents("test-media.png", &contents, &length, NULL)){
g_error("reading file failed.");
return -1;