diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-02-04 08:35:13 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-02-04 08:35:13 +0000 |
commit | a692fc0ef6481191f5808e355cdec541e7cafb18 (patch) | |
tree | c50146948a18ec0e859e995816249f1e6ebb496f /usr.sbin/tcpdump/print-atalk.c | |
parent | 7ae9a60262917bae9ffe0b7a63e84e4177a687f9 (diff) |
Some more non-alignment problems resolved.
ok deraadt@
Diffstat (limited to 'usr.sbin/tcpdump/print-atalk.c')
-rw-r--r-- | usr.sbin/tcpdump/print-atalk.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-atalk.c b/usr.sbin/tcpdump/print-atalk.c index 403b1958bc9..b52240788cd 100644 --- a/usr.sbin/tcpdump/print-atalk.c +++ b/usr.sbin/tcpdump/print-atalk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-atalk.c,v 1.22 2004/02/02 09:43:27 otto Exp $ */ +/* $OpenBSD: print-atalk.c,v 1.23 2004/02/04 08:35:12 otto Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -25,7 +25,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.22 2004/02/02 09:43:27 otto Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-atalk.c,v 1.23 2004/02/04 08:35:12 otto Exp $ (LBL)"; #endif #include <sys/param.h> @@ -46,6 +46,7 @@ struct rtentry; #include <netinet/tcp.h> #include <netinet/tcpip.h> +#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -223,7 +224,7 @@ ddp_print(register const u_char *bp, register u_int length, register int t, register u_short snet, register u_char snode, u_char skt) { - if ((long)bp & 3) { + if ((intptr_t)bp & (sizeof(long)-1)) { static u_char *abuf = NULL; if (abuf == NULL) { |