From 0046c1bae61e883199eee61fc2da20799ee2730f Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Fri, 19 Jul 2013 19:21:34 +0200 Subject: formatting, condinational compilation --- picohttp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/picohttp.c b/picohttp.c index 0e6a360..a532c69 100644 --- a/picohttp.c +++ b/picohttp.c @@ -1159,14 +1159,11 @@ replay: } else { if( mp->in_boundary ) { -#if 1 if( '\r' == ch ) { mp->replay = mp->in_boundary-1; mp->mismatch = mp->req->query.multipartboundary[mp->replay]; mp->in_boundary = 1; - } else -#endif - { + } else { mp->mismatch = ch; mp->replay = mp->in_boundary; mp->in_boundary = 0; -- cgit v1.2.3 From cfd0ed185c7b9bbcef04e84ef41074d054ca8cd0 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Fri, 19 Jul 2013 20:10:14 +0200 Subject: type for picohttpResponseWrite changed to void const * --- picohttp.c | 2 +- picohttp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/picohttp.c b/picohttp.c index a532c69..84e0238 100644 --- a/picohttp.c +++ b/picohttp.c @@ -1071,7 +1071,7 @@ int picohttpResponseSendHeaders ( int picohttpResponseWrite ( struct picohttpRequest * const req, size_t len, - char const *buf ) + void const *buf ) { int e; diff --git a/picohttp.h b/picohttp.h index 644761f..83cb5f2 100644 --- a/picohttp.h +++ b/picohttp.h @@ -170,7 +170,7 @@ int picohttpResponseSendHeader ( int picohttpResponseWrite ( struct picohttpRequest * const req, size_t len, - char const *buf ); + void const *buf ); int picohttpGetch(struct picohttpRequest * const req); -- cgit v1.2.3