diff options
Diffstat (limited to 'print-krb.c')
-rw-r--r-- | print-krb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/print-krb.c b/print-krb.c index d6c8e14f..af708753 100644 --- a/print-krb.c +++ b/print-krb.c @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-krb.c,v 1.23 2003/11/16 09:36:26 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-krb.c,v 1.23 2003-11-16 09:36:26 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -71,7 +71,7 @@ struct krb { static char tstr[] = " [|kerberos]"; -static struct tok type2str[] = { +static const struct tok type2str[] = { { AUTH_MSG_KDC_REQUEST, "KDC_REQUEST" }, { AUTH_MSG_KDC_REPLY, "KDC_REPLY" }, { AUTH_MSG_APPL_REQUEST, "APPL_REQUEST" }, @@ -84,7 +84,7 @@ static struct tok type2str[] = { { 0, NULL } }; -static struct tok kerr2str[] = { +static const struct tok kerr2str[] = { { KERB_ERR_OK, "OK" }, { KERB_ERR_NAME_EXP, "NAME_EXP" }, { KERB_ERR_SERVICE_EXP, "SERVICE_EXP" }, @@ -112,12 +112,12 @@ c_print(register const u_char *s, register const u_char *ep) flag = 0; break; } - if (!isascii(c)) { - c = toascii(c); + if (!ND_ISASCII(c)) { + c = ND_TOASCII(c); putchar('M'); putchar('-'); } - if (!isprint(c)) { + if (!ND_ISPRINT(c)) { c ^= 0x40; /* DEL to ?, others to alpha */ putchar('^'); } |