diff options
Diffstat (limited to 'print-atalk.c')
-rw-r--r-- | print-atalk.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/print-atalk.c b/print-atalk.c index 837a0160..8faa29f0 100644 --- a/print-atalk.c +++ b/print-atalk.c @@ -630,16 +630,15 @@ ataddr_string(netdissect_options *ndo, fclose(fp); } } - - /* - * Now try to look up the address in the table. - */ - for (tp = &hnametable[i & (HASHNAMESIZE-1)]; tp->nxt; - tp = tp->nxt) - if (tp->addr == i) - return (tp->name); } + /* + * Now try to look up the address in the table. + */ + for (tp = &hnametable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) + if (tp->addr == i) + return (tp->name); + /* didn't have the node name -- see if we've got the net name */ i |= 255; for (tp2 = &hnametable[i & (HASHNAMESIZE-1)]; tp2->nxt; tp2 = tp2->nxt) |