osx fix unsigned signed compare error 2
authorAndy Green <andy.green@linaro.org>
Thu, 10 Dec 2015 05:00:15 +0000 (13:00 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 10 Dec 2015 05:00:15 +0000 (13:00 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/test-server-http.c

index 4e05b52..c9d635c 100644 (file)
@@ -354,7 +354,8 @@ int callback_http(struct lws_context *context, struct lws *wsi,
                        if (m != n)
                                /* partial write, adjust */
                                if (lws_plat_file_seek_cur(lws_get_fops(context),
-                                                          pss->fd, m - n) < 0)
+                                                          pss->fd, m - n) ==
+                                                            (unsigned long)-1)
                                        goto bail;
 
                        if (m) /* while still active, extend timeout */