projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c6d0b
)
osx fix unsigned signed compare error 2
author
Andy Green
<andy.green@linaro.org>
Thu, 10 Dec 2015 05:00:15 +0000
(13:00 +0800)
committer
Andy Green
<andy.green@linaro.org>
Thu, 10 Dec 2015 05:00:15 +0000
(13:00 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/test-server-http.c
patch
|
blob
|
history
diff --git
a/test-server/test-server-http.c
b/test-server/test-server-http.c
index
4e05b52
..
c9d635c
100644
(file)
--- a/
test-server/test-server-http.c
+++ b/
test-server/test-server-http.c
@@
-354,7
+354,8
@@
int callback_http(struct lws_context *context, struct lws *wsi,
if (m != n)
/* partial write, adjust */
if (lws_plat_file_seek_cur(lws_get_fops(context),
- pss->fd, m - n) < 0)
+ pss->fd, m - n) ==
+ (unsigned long)-1)
goto bail;
if (m) /* while still active, extend timeout */