Remove unused var "service". Move #include "test-http-client.h" after std-header inclusion.

This commit is contained in:
Ralf Corsépius
2012-10-15 04:39:04 +02:00
parent 2d72c19843
commit b9e9dab9ef

View File

@@ -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; }