X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/451ac4c753933eca8ffd5fd5192a03334520d789..195a4cfd9de46b47ac6794930e19e38ed263b05f:/print-tftp.c diff --git a/print-tftp.c b/print-tftp.c index c0b13384..e0bedc39 100644 --- a/print-tftp.c +++ b/print-tftp.c @@ -89,10 +89,10 @@ static const struct tok err2str[] = { */ void tftp_print(netdissect_options *ndo, - register const u_char *bp, u_int length) + const u_char *bp, u_int length) { - register const char *cp; - register int opcode; + const char *cp; + int opcode; u_int ui; /* Print length */ @@ -140,7 +140,7 @@ tftp_print(netdissect_options *ndo, /* Print options, if any */ while (length != 0) { ND_TCHECK_1(bp); - if (*bp != '\0') + if (EXTRACT_U_1(bp) != '\0') ND_PRINT((ndo, " ")); ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); if (ui == 0) @@ -154,7 +154,7 @@ tftp_print(netdissect_options *ndo, /* Print options */ while (length != 0) { ND_TCHECK_1(bp); - if (*bp != '\0') + if (EXTRACT_U_1(bp) != '\0') ND_PRINT((ndo, " ")); ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); if (ui == 0)