summaryrefslogtreecommitdiffstats
path: root/socket_conn.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-09 22:58:15 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-09 22:58:15 +0100
commit83c9939550f8bbd6520dbe9dbb742d2dcb65bede (patch)
treebe53ba88259033c37e3df56160ee5de9b55a0037 /socket_conn.c
parentb75e0340c503cf3d76631508252cf979faf63a48 (diff)
downloadcrypto-master.zip
crypto-master.tar.gz
silence: unused-but-set-variableHEADmaster
Diffstat (limited to 'socket_conn.c')
-rw-r--r--socket_conn.c3
1 files changed, 1 insertions, 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;