summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2009-02-10 17:36:08 +0000
committerRoss Burton <ross@linux.intel.com>2009-02-10 17:36:08 +0000
commit0f35e1a439f652a102c0f239971f129d23686867 (patch)
treee2221e784a056ae643c25caedacd7dd81f8a8e5c /examples
parent1a8b74af77071ab484c1f7b75e0383b5c53bc28d (diff)
downloadlibrest-0f35e1a439f652a102c0f239971f129d23686867.tar.gz
Fix compile warnings
Diffstat (limited to 'examples')
-rw-r--r--examples/test-xml.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/test-xml.c b/examples/test-xml.c
index 3b519e7..8a85e29 100644
--- a/examples/test-xml.c
+++ b/examples/test-xml.c
@@ -93,11 +93,11 @@ proxy_call_raw_async_cb (RestProxyCall *call,
const gchar *payload;
goffset len;
- write (1, payload, len);
parser = rest_xml_parser_new ();
payload = rest_proxy_call_get_payload (call);
len = rest_proxy_call_get_payload_length (call);
+ write (1, payload, len);
node = rest_xml_parser_parse_from_data (parser, payload, len);
_rest_xml_node_output (node, 0);
@@ -112,8 +112,6 @@ main (gint argc, gchar **argv)
RestProxy *proxy;
RestProxyCall *call;
GMainLoop *loop;
- gchar *payload;
- gssize len;
g_type_init ();
g_thread_init (NULL);