From 949a8d0b46d6baa9f42c2f8c3bd5e3bdc3596cbd Mon Sep 17 00:00:00 2001 From: m0gg Date: Sun, 19 Nov 2006 09:40:14 +0000 Subject: nanohttp admin patch; code cleanup --- examples/nanohttp/http_client.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'examples/nanohttp/http_client.c') diff --git a/examples/nanohttp/http_client.c b/examples/nanohttp/http_client.c index c454fd7..d2ff4c9 100644 --- a/examples/nanohttp/http_client.c +++ b/examples/nanohttp/http_client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: http_client.c,v 1.2 2006/07/09 16:24:19 snowdrop Exp $ +* $Id: http_client.c,v 1.3 2006/11/19 09:40:14 m0gg Exp $ * * CSOAP Project: A http client/server library in C (example) * Copyright (C) 2003-2004 Ferhat Ayaz @@ -23,9 +23,16 @@ ******************************************************************/ #include #include - -#include +#include +#include + +#include +#include +#include +#include +#include #include +#include #define MAX_BUFFER_SIZE 1024 @@ -38,7 +45,7 @@ static char *password = NULL; static void show_response(hresponse_t *res) { - byte_t buffer[MAX_BUFFER_SIZE+1]; + unsigned char buffer[MAX_BUFFER_SIZE+1]; int read; if (!res) { -- cgit v1.1-32-gdbae