From be0818a664b3e4daed0a867181bac63c556d5ded Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 25 Dec 2019 20:01:18 +0000 Subject: [PATCH] Use different variable name for local vs param. #1834 --- ncat/ncat_listen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ncat/ncat_listen.c b/ncat/ncat_listen.c index fe653c1c0..46ba6ff06 100644 --- a/ncat/ncat_listen.c +++ b/ncat/ncat_listen.c @@ -1150,19 +1150,19 @@ static int chat_announce_connect(int fd, const union sockaddr_u *su) strbuf_sprintf(&buf, &size, &offset, " already connected: "); count = 0; for (i = 0; i <= client_fdlist.fdmax; i++) { - union sockaddr_u su; - socklen_t len = sizeof(su.storage); + union sockaddr_u tsu; + socklen_t len = sizeof(tsu.storage); if (i == fd || !FD_ISSET(i, &master_broadcastfds)) continue; - if (getpeername(i, &su.sockaddr, &len) == -1) + if (getpeername(i, &tsu.sockaddr, &len) == -1) bye("getpeername for sd %d failed: %s.", i, strerror(errno)); if (count > 0) strbuf_sprintf(&buf, &size, &offset, ", "); - strbuf_sprintf(&buf, &size, &offset, "%s as ", inet_socktop(&su), i); + strbuf_sprintf(&buf, &size, &offset, "%s as ", inet_socktop(&tsu), i); count++; }