diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-06-26 16:32:49 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-06-26 16:32:49 +0200 |
commit | 2a3fcf3f9bfe3f8362ed2eb6dd4cda44a51dee69 (patch) | |
tree | d4ab2655ed29771fa8b39172efafccc22402888b /test/bsdsocket.c | |
parent | 2a89ea7437ac3c7aede58d2cbceda96cdb48d4b9 (diff) | |
download | litheweb-2a3fcf3f9bfe3f8362ed2eb6dd4cda44a51dee69.tar.gz litheweb-2a3fcf3f9bfe3f8362ed2eb6dd4cda44a51dee69.tar.bz2 |
multipart boundary slicing seems to work (finally!)
Diffstat (limited to 'test/bsdsocket.c')
-rw-r--r-- | test/bsdsocket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/bsdsocket.c b/test/bsdsocket.c index 63f3d17..cda0d4d 100644 --- a/test/bsdsocket.c +++ b/test/bsdsocket.c @@ -70,8 +70,9 @@ int bsdsock_write(size_t count, char const *buf, void *data) int16_t bsdsock_getch(void *data) { char ch; - if( 1 != bsdsock_read(1, &ch, data) ) - return -1; + int err; + if( 1 != (err = bsdsock_read(1, &ch, data)) ) + return err; return ch; } |