summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-11 13:34:56 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-11 13:34:56 +0100
commit6f18d187abc5ab422c7239430287a99900d1d1e2 (patch)
treedb4cbc6d224b4ad3f9a3bebae57df7cb23e4bb57
parente53256be9125cdb9b354a59124ff6d6fb3c8227a (diff)
downloadecon-6f18d187abc5ab422c7239430287a99900d1d1e2.tar.gz
econ-6f18d187abc5ab422c7239430287a99900d1d1e2.tar.bz2
econ-6f18d187abc5ab422c7239430287a99900d1d1e2.zip
econproxy: Use ssize_t for read results
Since size_t is unsigned, so checking for < 0 wont work.
-rw-r--r--econproxy.c2
1 files changed, 1 insertions, 1 deletions
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)