X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6ab3136df5500b48a93619019658b14ee562666c..69cb46af9119e8b5554bcc4bf1bf36f39cb82131:/print-cdp.c diff --git a/print-cdp.c b/print-cdp.c index aefb68db..c28bd882 100644 --- a/print-cdp.c +++ b/print-cdp.c @@ -24,7 +24,6 @@ * http://www.cisco.com/univercd/cc/td/doc/product/lan/trsrb/frames.htm */ -#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -147,7 +146,7 @@ cdp_print(netdissect_options *ndo, if (!ndo->ndo_vflag) ND_PRINT((ndo, ", Device-ID ")); ND_PRINT((ndo, "'")); - fn_printn(ndo, tptr, len, NULL); + (void)fn_printn(ndo, tptr, len, NULL); ND_PRINT((ndo, "'")); break; case 0x02: /* Address */ @@ -156,7 +155,7 @@ cdp_print(netdissect_options *ndo, break; case 0x03: /* Port-ID */ ND_PRINT((ndo, "'")); - fn_printn(ndo, tptr, len, NULL); + (void)fn_printn(ndo, tptr, len, NULL); ND_PRINT((ndo, "'")); break; case 0x04: /* Capabilities */ @@ -171,13 +170,13 @@ cdp_print(netdissect_options *ndo, for (i=0;i 1) { ND_PRINT((ndo, "/")); - fn_printn(ndo, tptr + 1, len - 1, NULL); + (void)fn_printn(ndo, tptr + 1, len - 1, NULL); } break; default: