From 3a3e367f76570b9d74b7834f272a1a4dc3e1d1fc Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Fri, 19 Jul 2013 20:16:33 +0200 Subject: fixed compiler warning --- picohttp.c | 2 +- picohttp.h | 2 +- test/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/picohttp.c b/picohttp.c index 84e0238..6ecc528 100644 --- a/picohttp.c +++ b/picohttp.c @@ -99,7 +99,7 @@ static size_t picohttp_fmt_int(char *dest,int i) { #define picohttp_fmt_int fmt_long #endif -static char const * const picohttpStatusString(int code) +static char const *picohttpStatusString(int code) { switch(code) { case 200: diff --git a/picohttp.h b/picohttp.h index 83cb5f2..a15cffb 100644 --- a/picohttp.h +++ b/picohttp.h @@ -120,7 +120,7 @@ struct picohttpRequest { size_t contentlength; uint8_t contentencoding; uint8_t transferencoding; - unsigned char multipartboundary[PICOHTTP_MULTIPARTBOUNDARY_MAX_LEN+1]; + char multipartboundary[PICOHTTP_MULTIPARTBOUNDARY_MAX_LEN+1]; size_t chunklength; } query; struct { diff --git a/test/Makefile b/test/Makefile index e96cb0f..42f862f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,7 +3,7 @@ all: bsdsocket bsdsocket_nhd bsdsocket: bsdsocket.c ../picohttp.c ../picohttp.h - $(CC) -std=c99 -DHOST_DEBUG -O0 -g3 -I../ -o bsdsocket ../picohttp.c bsdsocket.c + $(CC) -std=c99 -DHOST_DEBUG -O0 -g3 -I../ -Wall -o bsdsocket ../picohttp.c bsdsocket.c bsdsocket_nhd: bsdsocket.c ../picohttp.c ../picohttp.h $(CC) -std=c99 -O0 -g3 -I../ -o bsdsocket_nhd ../picohttp.c bsdsocket.c -- cgit v1.2.3