projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dispose of a variable whose only use was being set to zero.
[u/mdw/putty]
/
unix
/
uxnet.c
diff --git
a/unix/uxnet.c
b/unix/uxnet.c
index
0312094
..
b7c20cf
100644
(file)
--- a/
unix/uxnet.c
+++ b/
unix/uxnet.c
@@
-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;
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;
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));
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;
t = accept(s->s,(struct sockaddr *)&isa,(socklen_t *) &addrlen);
if (t < 0) {
break;