From fd69886aeda473c97af2b9ae9c52123c45783ded Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Thu, 10 Jan 2002 06:03:12 +0000 Subject: - Network errors could pollute the buffers because -1 isn't noticed in an "unsigned int". - Remove redundant processing with machine->ssl is NULL. - Remove compiler warnings about uninitialised 'ctx' (it's not used uninitialised, but gcc can't see that). --- demos/tunala/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/tunala/buffer.c') diff --git a/demos/tunala/buffer.c b/demos/tunala/buffer.c index dc26c88601..c5cd004209 100644 --- a/demos/tunala/buffer.c +++ b/demos/tunala/buffer.c @@ -87,7 +87,7 @@ static unsigned int buffer_takedata(buffer_t *buf, unsigned char *ptr, int buffer_from_fd(buffer_t *buf, int fd) { - unsigned int toread = buffer_unused(buf); + int toread = buffer_unused(buf); if(toread == 0) /* Shouldn't be called in this case! */ abort(); @@ -101,7 +101,7 @@ int buffer_from_fd(buffer_t *buf, int fd) int buffer_to_fd(buffer_t *buf, int fd) { - unsigned int towrite = buffer_used(buf); + int towrite = buffer_used(buf); if(towrite == 0) /* Shouldn't be called in this case! */ abort(); -- cgit v1.2.3