From ffd953dfae82e3b0e8b905f4243cb45b9174eedc Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 10 Oct 2005 12:00:52 +0000 Subject: Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95. Patch by Leonardo Chiquitto Filho Thanks. --- lib/libc/rpc/svc_tcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libc/rpc/svc_tcp.c') 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) -- cgit v1.2.3-59-g8ed1b