diff options
author | Timm Bäder <mail@baedert.org> | 2016-07-14 12:32:51 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2016-07-14 12:32:51 +0200 |
commit | 1c2e5d826127ce6f0c51e75ee2b55e9d2ed4f615 (patch) | |
tree | e8e9cb64b8d0a2466a38f0b9e084083e0bc4e64a | |
parent | 3ecac7e9973c58d0891c85041e4eb16dbc3d47ed (diff) | |
download | librest-1c2e5d826127ce6f0c51e75ee2b55e9d2ed4f615.tar.gz |
examples: Make c89 compatible
-rw-r--r-- | examples/lastfm-shout.c | 2 | ||||
-rw-r--r-- | examples/post-twitter-media.c | 4 |
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; |