From 6f18d187abc5ab422c7239430287a99900d1d1e2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 11 Mar 2013 13:34:56 +0100 Subject: econproxy: Use ssize_t for read results Since size_t is unsigned, so checking for < 0 wont work. --- econproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/econproxy.c b/econproxy.c index e3a68c3..2f20a49 100644 --- a/econproxy.c +++ b/econproxy.c @@ -589,7 +589,7 @@ rfb_init(struct ep *ep) } d; char buf[BUFSIZ]; } init; - size_t len; + ssize_t len; ep->vnc_mfd = bind_socket(SOCK_STREAM, "localhost", "5500"); if (ep->vnc_mfd < 0) -- cgit