1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 11:29:01 +00:00

Removed "n_w" and "numready" variables to get rid of GCC (4.6.1) warnings

concerning set but never used variables.
This commit is contained in:
henri
2011-12-14 15:09:09 +00:00
parent 97402a0d95
commit f74851d638
2 changed files with 5 additions and 5 deletions

View File

@@ -201,7 +201,7 @@ void netexec(struct fdinfo *info, char *cmdexec)
crlf_state = 0;
for (;;) {
fd_set fds;
int r, n_r, n_w;
int r, n_r;
FD_ZERO(&fds);
FD_SET(info->fd, &fds);
@@ -221,7 +221,7 @@ void netexec(struct fdinfo *info, char *cmdexec)
n_r = ncat_recv(info, buf, sizeof(buf), &pending);
if (n_r <= 0)
goto loop_end;
n_w = write_loop(child_stdin[1], buf, n_r);
write_loop(child_stdin[1], buf, n_r);
} while (pending);
}
if (FD_ISSET(child_stdout[0], &fds)) {
@@ -234,7 +234,7 @@ void netexec(struct fdinfo *info, char *cmdexec)
if (fix_line_endings((char *) buf, &n_r, &crlf, &crlf_state))
wbuf = crlf;
}
n_w = ncat_send(info, wbuf, n_r);
ncat_send(info, wbuf, n_r);
if (crlf != NULL)
free(crlf);
}

View File

@@ -470,11 +470,11 @@ static int handle_connect(struct socket_buffer *client_sock,
while (!socket_errno() || socket_errno() == EINTR) {
char buf[DEFAULT_TCP_BUF_LEN];
int len, rc, numready;
int len, rc;
r = m;
numready = fselect(maxfd + 1, &r, NULL, NULL, NULL);
fselect(maxfd + 1, &r, NULL, NULL, NULL);
zmem(buf, sizeof(buf));