Browse Source

-cosmetic patch from Evgeny Grin

Christian Grothoff 12 years ago
parent
commit
a4e4998a29
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/microhttpd/daemon.c
  2. 1 1
      src/microhttpd/internal.c

+ 1 - 1
src/microhttpd/daemon.c

@@ -1596,7 +1596,7 @@ make_nonblocking_noninheritable (struct MHD_Daemon *daemon,
 #endif
     }
   if (!GetHandleInformation ((HANDLE) sock, &dwFlags) ||
-      ((dwFlags != dwFlags & ~HANDLE_FLAG_INHERIT) &&
+      ((dwFlags != (dwFlags & ~HANDLE_FLAG_INHERIT)) &&
        !SetHandleInformation ((HANDLE) sock, HANDLE_FLAG_INHERIT, 0)))
     {
 #if HAVE_MESSAGES

+ 1 - 1
src/microhttpd/internal.c

@@ -148,7 +148,7 @@ MHD_http_unescape (void *cls,
 	  num = strtoul (buf3, &end, 16);
 	  if ('\0' == *end)
 	    {
-	      *wpos = (unsigned char) num;
+	      *wpos = (char)((unsigned char) num);
 	      wpos++;
 	      rpos += 3;
 	      break;