summaryrefslogtreecommitdiff
path: root/tests/flickr.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-04-22 14:01:09 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2016-06-20 12:39:44 +0200
commitf8c2ab720de6f7741f4af10f43b95d27c27ecc8e (patch)
treecb9654e290547d4a832da37a5db6e884ef5b5467 /tests/flickr.c
parent9cca799e77aaf60561c303dbb0dac3ce9d78a3dc (diff)
downloadlibrest-f8c2ab720de6f7741f4af10f43b95d27c27ecc8e.tar.gz
Adapt tests and examples to API change
Diffstat (limited to 'tests/flickr.c')
-rw-r--r--tests/flickr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/flickr.c b/tests/flickr.c
index 08a55cb..4b2b8ac 100644
--- a/tests/flickr.c
+++ b/tests/flickr.c
@@ -55,7 +55,7 @@ main (int argc, char **argv)
call = rest_proxy_new_call (proxy);
rest_proxy_call_set_function (call, "flickr.people.getInfo");
rest_proxy_call_add_param (call, "user_id", ROSS_ID);
- if (!rest_proxy_call_run (call, NULL, &error))
+ if (!rest_proxy_call_sync (call, &error))
g_error ("Cannot make call: %s", error->message);
parser = rest_xml_parser_new ();
@@ -83,7 +83,7 @@ main (int argc, char **argv)
call = rest_proxy_new_call (proxy);
rest_proxy_call_set_function (call, "flickr.auth.getFrob");
- if (!rest_proxy_call_run (call, NULL, &error))
+ if (!rest_proxy_call_sync (call, &error))
g_error ("Cannot make call: %s", error->message);
parser = rest_xml_parser_new ();