X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/91e08f888d86fc7bc83732ee216c4ea609691d1c..47b02443f099fc93a7c69041d30bf6f6be552ece:/print.c diff --git a/print.c b/print.c index 3a060d41..41ca9cad 100644 --- a/print.c +++ b/print.c @@ -226,19 +226,19 @@ static const struct printer printers[] = { static void ndo_default_print(netdissect_options *ndo, const u_char *bp, u_int length); -static void ndo_error(netdissect_options *ndo _U_, const char *fmt, ...) +static void ndo_error(netdissect_options *ndo, const char *fmt, ...) __attribute__((noreturn)) #ifdef __ATTRIBUTE___FORMAT_OK __attribute__((format (printf, 2, 3))) #endif /* __ATTRIBUTE___FORMAT_OK */ ; -static void ndo_warning(netdissect_options *ndo _U_, const char *fmt, ...) +static void ndo_warning(netdissect_options *ndo, const char *fmt, ...) #ifdef __ATTRIBUTE___FORMAT_OK __attribute__((format (printf, 2, 3))) #endif /* __ATTRIBUTE___FORMAT_OK */ ; -static int ndo_printf(netdissect_options *ndo _U_, const char *fmt, ...) +static int ndo_printf(netdissect_options *ndo, const char *fmt, ...) #ifdef __ATTRIBUTE___FORMAT_OK __attribute ((format (printf, 2, 3))) #endif /* __ATTRIBUTE___FORMAT_OK */ @@ -401,7 +401,7 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h, } } - putchar('\n'); + ND_PRINT((ndo, "\n")); } /* @@ -454,7 +454,7 @@ ndo_warning(netdissect_options *ndo, const char *fmt, ...) } static int -ndo_printf(netdissect_options *ndo _U_, const char *fmt, ...) +ndo_printf(netdissect_options *ndo, const char *fmt, ...) { va_list args; int ret;