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:
d2f5b19
)
Update private-libwebsockets.h
author
spayton
<stuart@azureweb.plus.com>
Mon, 7 Apr 2014 17:43:58 +0000
(18:43 +0100)
committer
Andy Green
<andy.green@linaro.org>
Tue, 8 Apr 2014 06:22:53 +0000
(07:22 +0100)
fixes windows http file serve - macro compatible_file_read() incorrectly used 'amount' instead of '_amount'
lib/private-libwebsockets.h
patch
|
blob
|
history
diff --git
a/lib/private-libwebsockets.h
b/lib/private-libwebsockets.h
index
d45f6ec
..
b3d4e46
100644
(file)
--- a/
lib/private-libwebsockets.h
+++ b/
lib/private-libwebsockets.h
@@
-74,7
+74,7
@@
#define compatible_file_seek_cur(fd, offset) SetFilePointer(fd, offset, NULL, FILE_CURRENT)
#define compatible_file_read(amount, fd, buf, len) {\
DWORD _amount; \
- if (!ReadFile(fd, buf, len, &amount, NULL)) \
+ if (!ReadFile(fd, buf, len, &
_
amount, NULL)) \
amount = -1; \
else \
amount = _amount; \