diff options
author | Dan Winship <danw@gnome.org> | 2012-07-06 13:09:50 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-07-13 14:18:36 -0400 |
commit | d9db0727ff48f96f5312e65c8f0296f634d2c2b4 (patch) | |
tree | 6dd42c03f1e6feaaa4b2b44dfe50ca3f2f711165 /tests/requester-test.c | |
parent | 7b916078d6e1f3bc54124a9433295a8c3d825c22 (diff) | |
download | libsoup-d9db0727ff48f96f5312e65c8f0296f634d2c2b4.tar.gz libsoup-d9db0727ff48f96f5312e65c8f0296f634d2c2b4.tar.bz2 libsoup-d9db0727ff48f96f5312e65c8f0296f634d2c2b4.zip |
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/requester-test.c')
-rw-r--r-- | tests/requester-test.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/requester-test.c b/tests/requester-test.c index 4da46ab8..b4e86ea6 100644 --- a/tests/requester-test.c +++ b/tests/requester-test.c @@ -3,15 +3,6 @@ * Copyright (C) 2011 Red Hat, Inc. */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#define LIBSOUP_USE_UNSTABLE_REQUEST_API -#include <libsoup/soup.h> -#include <libsoup/soup-requester.h> -#include <libsoup/soup-request-http.h> - #include "test-utils.h" SoupServer *server; @@ -31,8 +22,8 @@ get_index (void) GError *error = NULL; if (!g_file_get_contents (SRCDIR "/index.txt", &contents, &length, &error)) { - fprintf (stderr, "Could not read index.txt: %s\n", - error->message); + g_printerr ("Could not read index.txt: %s\n", + error->message); exit (1); } |