diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-02-20 22:37:06 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-02-20 22:37:06 +0000 |
commit | a43b9ad5f5caa855ea5ad60c543130afb4d60187 (patch) | |
tree | b499fc3aaeb2f77252b0f2f8c9153ebe5bda4b94 /sys/dev/pci | |
parent | f38c322515c8f67eb89eaab605ce4febb78cabae (diff) |
Instead of defining le16_to_cpu to nothing use letoh16 so this
is slightly less likely to explode on big endian systems.
Stupidity present in the original FreeBSD code as well.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_ixgb_osdep.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ixgb_osdep.h b/sys/dev/pci/if_ixgb_osdep.h index 79f3b599673..8db863b12b0 100644 --- a/sys/dev/pci/if_ixgb_osdep.h +++ b/sys/dev/pci/if_ixgb_osdep.h @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_ixgb_osdep.h,v 1.2 2006/05/01 21:01:12 brad Exp $ */ +/* $OpenBSD: if_ixgb_osdep.h,v 1.3 2010/02/20 22:37:05 jsg Exp $ */ #ifndef _IXGB_OPENBSD_OS_H_ #define _IXGB_OPENBSD_OS_H_ @@ -61,7 +61,7 @@ POSSIBILITY OF SUCH DAMAGE. #define CMD_MEM_WRT_INVALIDATE 0x0010 /* BIT_4 */ -#define le16_to_cpu +#define le16_to_cpu letoh16 struct ixgb_osdep { |