summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_tcp.c
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2005-10-10 12:00:52 +0000
committerespie <espie@openbsd.org>2005-10-10 12:00:52 +0000
commitffd953dfae82e3b0e8b905f4243cb45b9174eedc (patch)
treecaa92540694c4802052e87653260b3ca7e27cfad /lib/libc/rpc/svc_tcp.c
parentless verbose listing of libraries (diff)
downloadwireguard-openbsd-ffd953dfae82e3b0e8b905f4243cb45b9174eedc.tar.xz
wireguard-openbsd-ffd953dfae82e3b0e8b905f4243cb45b9174eedc.zip
Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
Diffstat (limited to 'lib/libc/rpc/svc_tcp.c')
-rw-r--r--lib/libc/rpc/svc_tcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/rpc/svc_tcp.c b/lib/libc/rpc/svc_tcp.c
index 620606d0e17..bb999374b0e 100644
--- a/lib/libc/rpc/svc_tcp.c
+++ b/lib/libc/rpc/svc_tcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svc_tcp.c,v 1.26 2005/08/08 08:05:35 espie Exp $ */
+/* $OpenBSD: svc_tcp.c,v 1.27 2005/10/10 12:00:52 espie Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -343,7 +343,6 @@ readtcp(SVCXPRT *xprt, caddr_t buf, int len)
struct timeval start;
struct timeval tmp1, tmp2;
struct pollfd *pfd = NULL;
- int prevbytes = 0, bytes;
pfd = (struct pollfd *)malloc(sizeof(*pfd) * (svc_max_pollfd + 1));
if (pfd == NULL)