summaryrefslogtreecommitdiff
path: root/sys/dev/pci/safe.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-16 16:12:16 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-16 16:12:16 +0000
commit96c7e2683bd59830d2aaebfd2956afa3bce9323d (patch)
tree9890f5cc1f5ae73015b15463ae9e638007de9361 /sys/dev/pci/safe.c
parent76e68cee595bb0e514f24534e339a911d8f08032 (diff)
Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.
ok guenther@, henning@
Diffstat (limited to 'sys/dev/pci/safe.c')
-rw-r--r--sys/dev/pci/safe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/safe.c b/sys/dev/pci/safe.c
index 271cb470a1f..73053f62192 100644
--- a/sys/dev/pci/safe.c
+++ b/sys/dev/pci/safe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safe.c,v 1.39 2015/03/14 03:38:49 jsg Exp $ */
+/* $OpenBSD: safe.c,v 1.40 2015/07/16 16:12:15 mpi Exp $ */
/*-
* Copyright (c) 2003 Sam Leffler, Errno Consulting
@@ -56,7 +56,7 @@
#include <dev/pci/safevar.h>
#ifndef bswap32
-#define bswap32 NTOHL
+#define bswap32(x) (x) = ntohl((u_int32_t)(x))
#endif
#define KASSERT_X(x,y)