]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ascii.c
Remove more old-compiler compensation.
[tcpdump] / print-ascii.c
index 63f15f0f14215fe6708188a4b479494597dc7b88..56efc84af18c22873d946ae8e5162c0b9d6be3c3 100644 (file)
@@ -117,7 +117,7 @@ hex_and_ascii_print_with_offset(netdissect_options *ndo, const char *ident,
                cp++;
                s2 = GET_U_1(cp);
                cp++;
-               (void)nd_snprintf(hsp, sizeof(hexstuff) - (hsp - hexstuff),
+               (void)snprintf(hsp, sizeof(hexstuff) - (hsp - hexstuff),
                    " %02x%02x", s1, s2);
                hsp += HEXDUMP_HEXSTUFF_PER_SHORT;
                *(asp++) = (char)(ND_ISGRAPH(s1) ? s1 : '.');
@@ -136,7 +136,7 @@ hex_and_ascii_print_with_offset(netdissect_options *ndo, const char *ident,
        if (length & 1) {
                s1 = GET_U_1(cp);
                cp++;
-               (void)nd_snprintf(hsp, sizeof(hexstuff) - (hsp - hexstuff),
+               (void)snprintf(hsp, sizeof(hexstuff) - (hsp - hexstuff),
                    " %02x", s1);
                hsp += 3;
                *(asp++) = (char)(ND_ISGRAPH(s1) ? s1 : '.');