diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-11 13:34:56 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-11 13:34:56 +0100 |
commit | 6f18d187abc5ab422c7239430287a99900d1d1e2 (patch) | |
tree | db4cbc6d224b4ad3f9a3bebae57df7cb23e4bb57 | |
parent | e53256be9125cdb9b354a59124ff6d6fb3c8227a (diff) | |
download | econ-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.c | 2 |
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) |