remove unused 'numbytes'
PATCH 1/1 remove unused 'numbytes'
'numbytes' isn't used and can be removed.
Signed-off-by Paul Aitken <[email protected]>
--- src/local.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
src/local.c +1 -2
@@ -117,11 +117,10 @@ void local_client_destroy(int fd)int do_local_client_step (int fd,void (*process)(char *buf)) { -int numbytes;char buf[1024 ];memset (buf,0 ,sizeof (buf)); -while ((numbytes =recv (fd, buf,sizeof (buf)-1 ,0 )) >0 ) { +while (recv (fd, buf,sizeof (buf)-1 ,0 ) >0 ) { buf[sizeof (buf)-1 ] ='\0' ;if (process)process (buf);
Signature · 1 line
1.9.1