From 83c9939550f8bbd6520dbe9dbb742d2dcb65bede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 9 Dec 2014 22:58:15 +0100 Subject: silence: unused-but-set-variable --- socket_conn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/socket_conn.c b/socket_conn.c index f7317d3..92cd430 100644 --- a/socket_conn.c +++ b/socket_conn.c @@ -24,11 +24,10 @@ int socket_connected(int s) struct sockaddr_in sa; socklen_t dummy; char ch; - int r; dummy = sizeof sa; if (getpeername(s,(struct sockaddr *) &sa,&dummy) == -1) { - r = read(s,&ch,1); /* sets errno */ + read(s,&ch,1); /* sets errno */ return 0; } return 1; -- cgit v1.1-2-g2b99