diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-01-12 11:25:09 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-01-12 11:25:09 +0000 |
commit | 84eb4cd7ec404631e6bdad07830385ee22632b43 (patch) | |
tree | 65019a0f4d74b4eccd2bc2ac79254616ef20ca96 /usr.sbin/traceroute | |
parent | 4a4974b5fe3b5b0f85b96004d7da79ce6c50dd2f (diff) |
Zap unused var in asn_lookup; from Michael W. Bombardieri
Diffstat (limited to 'usr.sbin/traceroute')
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 0066e80278a..17e95fd9bcb 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traceroute.c,v 1.79 2011/11/08 12:16:54 sthen Exp $ */ +/* $OpenBSD: traceroute.c,v 1.80 2012/01/12 11:25:08 sthen Exp $ */ /* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */ /*- @@ -1195,14 +1195,14 @@ void print_asn(struct in_addr in) { const u_char *uaddr = (const u_char *)&in.s_addr; - int n, i, counter; + int i, counter; struct rrsetinfo *answers = NULL; char qbuf[MAXDNAME+1]; (void) snprintf(qbuf, sizeof qbuf, "%u.%u.%u.%u.origin.asn.cymru.com", (uaddr[3] & 0xff), (uaddr[2] & 0xff), (uaddr[1] & 0xff), (uaddr[0] & 0xff)); - if (n = getrrsetbyname(qbuf, C_IN, T_TXT, 0, &answers)) + if (getrrsetbyname(qbuf, C_IN, T_TXT, 0, &answers) != 0) return; for (counter = 0; counter < answers->rri_nrdatas; counter++) { char *p, *as = answers->rri_rdatas[counter].rdi_data; |