mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
Use fn_print_char() to simplify some code
This commit is contained in:
parent
e048961ec1
commit
19b46e2835
10
print-krb.c
10
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;
|
||||
|
Loading…
Reference in New Issue
Block a user