X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/2eb023747062b79164c8f34adbf893bec938dd9a..35e40c4872aa43dff7ca2f9715f6637e9ce6c721:/util-print.c diff --git a/util-print.c b/util-print.c index f9ea618d..6f8f61d1 100644 --- a/util-print.c +++ b/util-print.c @@ -94,33 +94,6 @@ fn_print_str(netdissect_options *ndo, const u_char *s) } } -/* - * Print out a null-terminated filename (or other ASCII string), part of - * the packet buffer. - * If ep is NULL, assume no truncation check is needed. - * Return true if truncated. - * Stop at ep (if given) or before the null char, whichever is first. - */ -int -nd_print(netdissect_options *ndo, - const u_char *s, const u_char *ep) -{ - int ret; - u_char c; - - ret = 1; /* assume truncated */ - while (ep == NULL || s < ep) { - c = GET_U_1(s); - s++; - if (c == '\0') { - ret = 0; - break; - } - fn_print_char(ndo, c); - } - return(ret); -} - /* * Print out a null-terminated filename (or other ASCII string) from * a fixed-length field in the packet buffer, or from what remains of