summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-05-16 02:30:41 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-05-16 02:30:41 +0000
commit196cb361691e6b713df554208e03d0c32bcd4634 (patch)
treef1c904308127aacd2d50079eb77510d97c349b06 /sys
parent6fc2a787a0dc96b2a9c663acc11509d85590d29d (diff)
Use 16bit alignment in addr_cmp() (not 32bit) so this has a chance
of working on sparc64.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/if_wi_hostap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi_hostap.c b/sys/dev/ic/if_wi_hostap.c
index 71c3b5a9776..0d6f069c2b1 100644
--- a/sys/dev/ic/if_wi_hostap.c
+++ b/sys/dev/ic/if_wi_hostap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_hostap.c,v 1.24 2003/02/15 17:49:39 millert Exp $ */
+/* $OpenBSD: if_wi_hostap.c,v 1.25 2003/05/16 02:30:40 millert Exp $ */
/*
* Copyright (c) 2002
@@ -329,7 +329,8 @@ static __inline int
addr_cmp(u_int8_t a[], u_int8_t b[])
{
return (*(u_int16_t *)(a + 4) == *(u_int16_t *)(b + 4) &&
- *(u_int32_t *)(a ) == *(u_int32_t *)(b));
+ *(u_int16_t *)(a + 2) == *(u_int16_t *)(b + 2) &&
+ *(u_int16_t *)(a ) == *(u_int16_t *)(b));
}
/* wihap_sta_movetail(): move sta to the tail of the station list in whi */