summaryrefslogtreecommitdiffstats
path: root/socket_conn.c
diff options
context:
space:
mode:
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;