From 550145d49e2bc6643758197dde2e0e92ec1e022b Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Mon, 15 Apr 2002 04:14:03 +0000 Subject: Changed the variable type in read_request_line() to an unsigned variable in order to detect negative returns. --- src/reqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/reqs.c b/src/reqs.c index 154298b..b212a1f 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1,4 +1,4 @@ -/* $Id: reqs.c,v 1.58 2002-04-15 02:07:27 rjkaes Exp $ +/* $Id: reqs.c,v 1.59 2002-04-15 04:14:03 rjkaes Exp $ * * This is where all the work in tinyproxy is actually done. Incoming * connections have a new thread created for them. The thread then @@ -137,7 +137,7 @@ check_allowed_connect_ports(int port) static int read_request_line(struct conn_s *connptr) { - size_t len; + ssize_t len; retry: len = readline(connptr->client_fd, &connptr->request_line); -- cgit v1.2.3