diff options
author | Ralf Corsépius <ralf.corsepius@rtems.org> | 2012-10-15 04:39:04 +0200 |
---|---|---|
committer | Ralf Corsépius <ralf.corsepius@rtems.org> | 2012-10-15 17:57:27 +0200 |
commit | b9e9dab9efdb47c7ed37b98095ef3ca9bd934973 (patch) | |
tree | b9e32b4418282198c96d1c659e8c48d2fd57c22c /testsuites/libtests/mghttpd01 | |
parent | Move extern "C" after std-header inclusions. (diff) | |
download | rtems-b9e9dab9efdb47c7ed37b98095ef3ca9bd934973.tar.bz2 |
Remove unused var "service". Move #include "test-http-client.h" after std-header inclusion.
Diffstat (limited to 'testsuites/libtests/mghttpd01')
-rw-r--r-- | testsuites/libtests/mghttpd01/test-http-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/libtests/mghttpd01/test-http-client.c b/testsuites/libtests/mghttpd01/test-http-client.c index 6e78457468..da3953cfee 100644 --- a/testsuites/libtests/mghttpd01/test-http-client.c +++ b/testsuites/libtests/mghttpd01/test-http-client.c @@ -12,7 +12,6 @@ * http://www.rtems.com/license/LICENSE. */ -#include "test-http-client.h" #include <sys/types.h> #include <sys/socket.h> @@ -21,6 +20,8 @@ #include <netdb.h> #include <unistd.h> +#include "test-http-client.h" + void httpc_init_context( httpc_context *ctx ) @@ -38,7 +39,6 @@ bool httpc_open_connection( struct sockaddr_in addr; struct hostent *server; - struct servent *service; ctx->socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if(ctx->socket < 0) { return false; } |