summaryrefslogtreecommitdiff
path: root/tests/streaming-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-07-06 13:09:50 -0400
committerDan Winship <danw@gnome.org>2012-07-13 14:18:36 -0400
commitd9db0727ff48f96f5312e65c8f0296f634d2c2b4 (patch)
tree6dd42c03f1e6feaaa4b2b44dfe50ca3f2f711165 /tests/streaming-test.c
parent7b916078d6e1f3bc54124a9433295a8c3d825c22 (diff)
downloadlibsoup-d9db0727ff48f96f5312e65c8f0296f634d2c2b4.tar.gz
Clean up includes
Especially, include soup.h rather than individually including a bunch of other public soup-*.h files. Remove unnecessary system includes (many are leftovers from code that has moved down into glib).
Diffstat (limited to 'tests/streaming-test.c')
-rw-r--r--tests/streaming-test.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/streaming-test.c b/tests/streaming-test.c
index 869a7b61..239e0ce8 100644
--- a/tests/streaming-test.c
+++ b/tests/streaming-test.c
@@ -3,15 +3,6 @@
* Copyright (C) 2008 Red Hat, Inc.
*/
-#include "config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <glib.h>
-#include <libsoup/soup.h>
-
#include "test-utils.h"
#define RESPONSE_CHUNK_SIZE 1024
@@ -28,8 +19,8 @@ get_full_response (void)
&full_response,
&full_response_length,
&error)) {
- fprintf (stderr, "Could not read index file %s: %s\n",
- SRCDIR "/index.txt", error->message);
+ g_printerr ("Could not read index file %s: %s\n",
+ SRCDIR "/index.txt", error->message);
g_error_free (error);
exit (1);
}