Fixed compiler warning on Windows. 34/2834/1
authorDavid Galeano <davidgaleano@turbulenz.biz>
Wed, 9 Jan 2013 07:25:05 +0000 (15:25 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:21 +0000 (13:01 -0800)
lib/parsers.c

index a185971..2298c4e 100644 (file)
 
 #include "private-libwebsockets.h"
 
+#ifdef WIN32
+#include <io.h>
+#endif
+
 const struct lws_tokens lws_tokens[WSI_TOKEN_COUNT] = {
 
        /* win32 can't do C99 */
@@ -1307,7 +1311,7 @@ illegal_ctl_length:
 int libwebsocket_interpret_incoming_packet(struct libwebsocket *wsi,
                                                 unsigned char *buf, size_t len)
 {
-       int n;
+       size_t n;
 
 #ifdef DEBUG
        fprintf(stderr, "received %d byte packet\n", (int)len);