From: Francois-Xavier Le Bail Date: Wed, 14 Feb 2018 12:58:11 +0000 (+0100) Subject: Use fn_print_char() to simplify some code X-Git-Tag: tcpdump-4.99-bp~1264 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/19b46e28357131bbc4047e7dfa7074629185316e?ds=sidebyside Use fn_print_char() to simplify some code --- diff --git a/print-krb.c b/print-krb.c index 48c448bd..5e7cb412 100644 --- a/print-krb.c +++ b/print-krb.c @@ -125,15 +125,7 @@ c_print(netdissect_options *ndo, flag = 0; break; } - if (!ND_ISASCII(c)) { - c = ND_TOASCII(c); - ND_PRINT("M-"); - } - if (!ND_ISPRINT(c)) { - c ^= 0x40; /* DEL to ?, others to alpha */ - ND_PRINT("^"); - } - ND_PRINT("%c", c); + fn_print_char(ndo, c); } if (flag) return NULL;