summaryrefslogtreecommitdiff
path: root/tools/wispr.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-11-01 02:05:45 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-11-01 02:05:45 +0100
commit64e9586ae2953162b3b7ae1c0e11e4df4b0ed787 (patch)
tree0f704d3ffd81e511f35a8d189491db68e3ad96bc /tools/wispr.c
parent0b011d307d9f87927fe9db8d0490a31a6a879ce4 (diff)
downloadconnman-64e9586ae2953162b3b7ae1c0e11e4df4b0ed787.tar.gz
connman-64e9586ae2953162b3b7ae1c0e11e4df4b0ed787.tar.bz2
connman-64e9586ae2953162b3b7ae1c0e11e4df4b0ed787.zip
The HTTP status code can be retrieved from result object
Diffstat (limited to 'tools/wispr.c')
-rw-r--r--tools/wispr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/wispr.c b/tools/wispr.c
index 279d5c1c..1492e6b9 100644
--- a/tools/wispr.c
+++ b/tools/wispr.c
@@ -240,10 +240,11 @@ static void parser_callback(const char *str, gpointer user_data)
static guint request_id;
static GWebParser *request_parser;
-static void web_result(guint16 status, GWebResult *result, gpointer user_data)
+static void web_result(GWebResult *result, gpointer user_data)
{
const guint8 *chunk;
gsize length;
+ guint16 status;
gdouble elapsed;
status = g_web_result_get_status(result);