aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-17 15:04:44 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-07-17 15:04:44 +0200
commit08e2fb421acd1684e57f79fd74b1eced4add6f3e (patch)
tree579c22e75579c5f3ba7379fde31392a902b08f16
parent8d66d3911d45e61956d7fe0ee4879482998d0a8e (diff)
downloadlitheweb-08e2fb421acd1684e57f79fd74b1eced4add6f3e.tar.gz
litheweb-08e2fb421acd1684e57f79fd74b1eced4add6f3e.tar.bz2
...
-rw-r--r--picohttp.c2
-rw-r--r--test/bsdsocket.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/picohttp.c b/picohttp.c
index f4c45bd..bc2f1f1 100644
--- a/picohttp.c
+++ b/picohttp.c
@@ -1247,7 +1247,7 @@ int picohttpMultipartRead(
* Probably a lot of code would be shared with the ...Getch variant
* and could be placed into a commonly used function.
*/
- uint16_t ch;
+ int16_t ch;
size_t i;
for(i = 0; i < len; i++) {
if( 0 > (ch = picohttpMultipartGetch(mp)) ) {
diff --git a/test/bsdsocket.c b/test/bsdsocket.c
index e090054..90b4702 100644
--- a/test/bsdsocket.c
+++ b/test/bsdsocket.c
@@ -145,7 +145,7 @@ void rhUpload(struct picohttpRequest *req)
struct picohttpMultipart mp = picohttpMultipartStart(req);
while( !picohttpMultipartNext(&mp) ) {
- fprintf(stderr, "processing form field \"%s\"\n", mp.disposition.name);
+ fprintf(stderr, "\nprocessing form field \"%s\"\n", mp.disposition.name);
for(int16_t ch = picohttpMultipartGetch(&mp);
0 <= ch;
ch = picohttpMultipartGetch(&mp) ) {