X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/71d0745d3d13d2c58126ebfeeeff0f1c8e745335..refs/pull/482/head:/print-atalk.c diff --git a/print-atalk.c b/print-atalk.c index 6940d393..72fd72ad 100644 --- a/print-atalk.c +++ b/print-atalk.c @@ -25,15 +25,15 @@ #include "config.h" #endif -#include +#include #include #include -#include "interface.h" +#include "netdissect.h" #include "addrtoname.h" #include "ethertype.h" -#include "extract.h" /* must come after interface.h */ +#include "extract.h" #include "appletalk.h" static const char tstr[] = "[|atalk]"; @@ -566,7 +566,7 @@ ataddr_string(netdissect_options *ndo, tp->nxt; tp = tp->nxt) ; tp->addr = i2; - tp->nxt = newhnamemem(); + tp->nxt = newhnamemem(ndo); tp->name = strdup(nambuf); if (tp->name == NULL) (*ndo->ndo_error)(ndo, @@ -584,7 +584,7 @@ ataddr_string(netdissect_options *ndo, for (tp2 = &hnametable[i & (HASHNAMESIZE-1)]; tp2->nxt; tp2 = tp2->nxt) if (tp2->addr == i) { tp->addr = (atnet << 8) | athost; - tp->nxt = newhnamemem(); + tp->nxt = newhnamemem(ndo); (void)snprintf(nambuf, sizeof(nambuf), "%s.%d", tp2->name, athost); tp->name = strdup(nambuf); @@ -595,7 +595,7 @@ ataddr_string(netdissect_options *ndo, } tp->addr = (atnet << 8) | athost; - tp->nxt = newhnamemem(); + tp->nxt = newhnamemem(ndo); if (athost != 255) (void)snprintf(nambuf, sizeof(nambuf), "%d.%d", atnet, athost); else