Dispose of a variable whose only use was being set to zero.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 20 Jan 2005 21:45:42 +0000 (21:45 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 20 Jan 2005 21:45:42 +0000 (21:45 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5156 cda61777-01e9-0310-a592-d414129be87e

unix/uxnet.c

index 0312094..b7c20cf 100644 (file)
@@ -949,7 +949,6 @@ static int sk_tcp_write_oob(Socket sock, const char *buf, int len)
 static int net_select_result(int fd, int event)
 {
     int ret;
-    int err;
     char buf[20480];                  /* nice big buffer for plenty of speed */
     Actual_Socket s;
     u_long atmark;
@@ -1013,7 +1012,6 @@ static int net_select_result(int fd, int event)
            int t;  /* socket of connection */
 
            memset(&isa, 0, sizeof(struct sockaddr_in));
-           err = 0;
            t = accept(s->s,(struct sockaddr *)&isa,(socklen_t *) &addrlen);
            if (t < 0) {
                break;