use ssize_t instead of size_t for return values of read/recv/SSL_read
authorTobias Maier <tobias.maier@netplace.com>
Thu, 5 Apr 2012 09:57:12 +0000 (11:57 +0200)
committerAndy Green <andy.green@linaro.org>
Thu, 5 Apr 2012 10:24:53 +0000 (18:24 +0800)
Signed-off-by: Tobias Maier <tobias.maier@netplace.com>
lib/libwebsockets.c

index b75ab3b..94f0a94 100644 (file)
@@ -1448,7 +1448,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
        struct libwebsocket *new_wsi;
        int n;
        int m;
-       size_t len;
+       ssize_t len;
        int accept_fd;
        unsigned int clilen;
        struct sockaddr_in cli_addr;