aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-02-08 14:02:05 +0000
committerChristian Grothoff <christian@grothoff.org>2014-02-08 14:02:05 +0000
commita4e4998a2994619eb5fcb75b623e882f775906d9 (patch)
tree9e35a6f6761a3c219b7ae8e0a62d2d7f823612f0 /src
parente0c9a49f61ef9e7af78a6fcf5d626755a30c0d36 (diff)
downloadlibmicrohttpd-a4e4998a2994619eb5fcb75b623e882f775906d9.tar.gz
libmicrohttpd-a4e4998a2994619eb5fcb75b623e882f775906d9.zip
-cosmetic patch from Evgeny Grin
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/daemon.c2
-rw-r--r--src/microhttpd/internal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b0a940fe..6be78f68 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1596,7 +1596,7 @@ make_nonblocking_noninheritable (struct MHD_Daemon *daemon,
1596#endif 1596#endif
1597 } 1597 }
1598 if (!GetHandleInformation ((HANDLE) sock, &dwFlags) || 1598 if (!GetHandleInformation ((HANDLE) sock, &dwFlags) ||
1599 ((dwFlags != dwFlags & ~HANDLE_FLAG_INHERIT) && 1599 ((dwFlags != (dwFlags & ~HANDLE_FLAG_INHERIT)) &&
1600 !SetHandleInformation ((HANDLE) sock, HANDLE_FLAG_INHERIT, 0))) 1600 !SetHandleInformation ((HANDLE) sock, HANDLE_FLAG_INHERIT, 0)))
1601 { 1601 {
1602#if HAVE_MESSAGES 1602#if HAVE_MESSAGES
diff --git a/src/microhttpd/internal.c b/src/microhttpd/internal.c
index 9b234fea..08d20cee 100644
--- a/src/microhttpd/internal.c
+++ b/src/microhttpd/internal.c
@@ -148,7 +148,7 @@ MHD_http_unescape (void *cls,
148 num = strtoul (buf3, &end, 16); 148 num = strtoul (buf3, &end, 16);
149 if ('\0' == *end) 149 if ('\0' == *end)
150 { 150 {
151 *wpos = (unsigned char) num; 151 *wpos = (char)((unsigned char) num);
152 wpos++; 152 wpos++;
153 rpos += 3; 153 rpos += 3;
154 break; 154 break;