summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/print-krb.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1997-05-27 02:11:31 +0000
committerfenner <fenner@FreeBSD.org>1997-05-27 02:11:31 +0000
commita9b9c86c8a0ccde5c1480bf5a0ba250d949a6d65 (patch)
treee094325bbde8f6c3c673d34a84cb20359f0f55fd /contrib/tcpdump/print-krb.c
parent97a804ef88319863cfa8146c068ec895f4ad8316 (diff)
downloadFreeBSD-src-a9b9c86c8a0ccde5c1480bf5a0ba250d949a6d65.zip
FreeBSD-src-a9b9c86c8a0ccde5c1480bf5a0ba250d949a6d65.tar.gz
Virgin import of LBL tcpdump v3.3
Diffstat (limited to 'contrib/tcpdump/print-krb.c')
-rw-r--r--contrib/tcpdump/print-krb.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/contrib/tcpdump/print-krb.c b/contrib/tcpdump/print-krb.c
index 1615b0c..99cb581 100644
--- a/contrib/tcpdump/print-krb.c
+++ b/contrib/tcpdump/print-krb.c
@@ -22,8 +22,8 @@
*/
#ifndef lint
-static char rcsid[] =
- "@(#) $Header: print-krb.c,v 1.6 96/07/23 14:17:24 leres Exp $";
+static const char rcsid[] =
+ "@(#) $Header: print-krb.c,v 1.8 96/12/10 23:17:39 leres Exp $";
#endif
#include <sys/param.h>
@@ -110,19 +110,19 @@ static struct tok kerr2str[] = {
/* little endian (unaligned) to host byte order */
/* XXX need to look at this... */
-#define vtohlp(x) ((( ((char*)(x))[0] ) ) | \
- (( ((char*)(x))[1] ) << 8) | \
- (( ((char*)(x))[2] ) << 16) | \
- (( ((char*)(x))[3] ) << 24))
-#define vtohsp(x) ((( ((char*)(x))[0] ) ) | \
- (( ((char*)(x))[1] ) << 8))
+#define vtohlp(x) ((( ((char *)(x))[0] ) ) | \
+ (( ((char *)(x))[1] ) << 8) | \
+ (( ((char *)(x))[2] ) << 16) | \
+ (( ((char *)(x))[3] ) << 24))
+#define vtohsp(x) ((( ((char *)(x))[0] ) ) | \
+ (( ((char *)(x))[1] ) << 8))
/* network (big endian) (unaligned) to host byte order */
-#define ntohlp(x) ((( ((char*)(x))[3] ) ) | \
- (( ((char*)(x))[2] ) << 8) | \
- (( ((char*)(x))[1] ) << 16) | \
- (( ((char*)(x))[0] ) << 24))
-#define ntohsp(x) ((( ((char*)(x))[1] ) ) | \
- (( ((char*)(x))[0] ) << 8))
+#define ntohlp(x) ((( ((char *)(x))[3] ) ) | \
+ (( ((char *)(x))[2] ) << 8) | \
+ (( ((char *)(x))[1] ) << 16) | \
+ (( ((char *)(x))[0] ) << 24))
+#define ntohsp(x) ((( ((char *)(x))[1] ) ) | \
+ (( ((char *)(x))[0] ) << 8))
@@ -281,7 +281,7 @@ krb_print(const u_char *dat, u_int length)
case 4:
printf(" v%d", kp->pvno);
- krb4_print((const u_char*)kp);
+ krb4_print((const u_char *)kp);
break;
case 106:
OpenPOWER on IntegriCloud