From 19b46e28357131bbc4047e7dfa7074629185316e Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Wed, 14 Feb 2018 13:58:11 +0100 Subject: [PATCH] Use fn_print_char() to simplify some code --- print-krb.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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;