summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/endian.h
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-03-06 11:35:04 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-03-06 11:35:04 +0000
commit927bd659607ced6a622a385fe2163b20aa4856c0 (patch)
tree8301d05b90e73d73096f2e802f122f8b1075a229 /sys/i386/include/endian.h
parent59562180cacba4088f9bad942052d8fdf14e0383 (diff)
downloadFreeBSD-src-927bd659607ced6a622a385fe2163b20aa4856c0.zip
FreeBSD-src-927bd659607ced6a622a385fe2163b20aa4856c0.tar.gz
Spell what was originally "unsigned long" as "unsigned long" again,
to cut down on some compiler warnings caused by lexically mismatched types. Reviewed by: bde
Diffstat (limited to 'sys/i386/include/endian.h')
-rw-r--r--sys/i386/include/endian.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h
index 1968249..c9e6cb9 100644
--- a/sys/i386/include/endian.h
+++ b/sys/i386/include/endian.h
@@ -68,16 +68,16 @@ __END_DECLS
#ifdef __GNUC__
-static __inline unsigned int
-__uint16_swap_uint32(unsigned int __x)
+static __inline unsigned long
+__uint16_swap_uint32(unsigned long __x)
{
__asm ("rorl $16, %1" : "=r" (__x) : "0" (__x));
return __x;
}
-static __inline unsigned int
-__uint8_swap_uint32(unsigned int __x)
+static __inline unsigned long
+__uint8_swap_uint32(unsigned long __x)
{
#if defined(_KERNEL) && (defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)) && !defined(I386_CPU)
__asm ("bswap %0" : "=r" (__x) : "0" (__x));
OpenPOWER on IntegriCloud