diff options
Diffstat (limited to 'usr.sbin/traceroute/traceroute.c')
-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; |