diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-12-07 02:56:07 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-12-07 02:56:07 +0000 |
commit | 1175b367c77957b9c14d4c9527b4f111b9c8d63d (patch) | |
tree | d368526d476ffcf502c42e94d16428fa9bef3dd9 /usr.bin/systat/netstat.c | |
parent | 89ae31d1744f7a0a6124e4185e4f6859d09ef7ef (diff) |
Warning cleanup including unused variables and shadowed names
Diffstat (limited to 'usr.bin/systat/netstat.c')
-rw-r--r-- | usr.bin/systat/netstat.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index 62052910532..06a41e35e35 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netstat.c,v 1.31 2008/06/12 22:26:01 canacar Exp $ */ +/* $OpenBSD: netstat.c,v 1.32 2008/12/07 02:56:06 canacar Exp $ */ /* $NetBSD: netstat.c,v 1.3 1995/06/18 23:53:07 cgd Exp $ */ /*- @@ -450,19 +450,19 @@ static const char * inetname(struct in_addr in) { static char line[NI_MAXHOST]; - struct sockaddr_in sin; + struct sockaddr_in si; int flags, e; flags = nflag ? NI_NUMERICHOST : 0; if (in.s_addr == INADDR_ANY) return "*"; - memset(&sin, 0, sizeof(sin)); - sin.sin_family = AF_INET; - sin.sin_len = sizeof(struct sockaddr_in); - sin.sin_addr = in; + memset(&si, 0, sizeof(si)); + si.sin_family = AF_INET; + si.sin_len = sizeof(struct sockaddr_in); + si.sin_addr = in; - e = getnameinfo((struct sockaddr *)&sin, sin.sin_len, + e = getnameinfo((struct sockaddr *)&si, si.sin_len, line, sizeof(line), NULL, 0, flags); if (e == 0) |