summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-10-25 05:10:32 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-10-25 05:10:32 +0000
commit5f8ee4fae371395b42dfd2a16b31e7ccf013aa8d (patch)
tree114757a0c999d2913c8c27e9e31ec9e0907de028
parent3e91392c8a75d1dd81db1c87775d9fe53be374ec (diff)
downloadtinyproxy-5f8ee4fae371395b42dfd2a16b31e7ccf013aa8d.tar.gz
tinyproxy-5f8ee4fae371395b42dfd2a16b31e7ccf013aa8d.zip
Bit of source code clean up.
Diffstat (limited to '')
-rw-r--r--src/sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sock.c b/src/sock.c
index de966b4..c621fa1 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -1,4 +1,4 @@
-/* $Id: sock.c,v 1.13 2001-10-24 00:37:23 rjkaes Exp $
+/* $Id: sock.c,v 1.14 2001-10-25 05:10:32 rjkaes Exp $
*
* Sockets are created and destroyed here. When a new connection comes in from
* a client, we need to copy the socket and the create a second socket to the
@@ -277,5 +277,6 @@ ssize_t readline(int fd, char *ptr, size_t maxlen)
/* Tack a NIL to the end to make is a standard "C" string */
*ptr = '\0';
+
return (ssize_t)n;
}