diff options
author | bde <bde@FreeBSD.org> | 2000-10-28 08:20:33 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-10-28 08:20:33 +0000 |
commit | c47f1bfac04bbd4ceabca25c367811f97c622ea6 (patch) | |
tree | 5596cd952cca8a6e5a09d19cf52ea05fc0afbbc5 /sys | |
parent | a09af496027dfef5ceff380741a63b579190b46c (diff) | |
download | FreeBSD-src-c47f1bfac04bbd4ceabca25c367811f97c622ea6.zip FreeBSD-src-c47f1bfac04bbd4ceabca25c367811f97c622ea6.tar.gz |
Quick fix for namespace problems which broke many ports. Spell
uint16_t as "unsigned short" like it used to be and uint32_t as
"unsigned int" not like it used to be (was: "unsigned long").
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/include/endian.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h index b8619e2..1968249 100644 --- a/sys/i386/include/endian.h +++ b/sys/i386/include/endian.h @@ -68,16 +68,16 @@ __END_DECLS #ifdef __GNUC__ -static __inline uint32_t -__uint16_swap_uint32(uint32_t __x) +static __inline unsigned int +__uint16_swap_uint32(unsigned int __x) { __asm ("rorl $16, %1" : "=r" (__x) : "0" (__x)); return __x; } -static __inline uint32_t -__uint8_swap_uint32(uint32_t __x) +static __inline unsigned int +__uint8_swap_uint32(unsigned int __x) { #if defined(_KERNEL) && (defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)) && !defined(I386_CPU) __asm ("bswap %0" : "=r" (__x) : "0" (__x)); @@ -88,8 +88,8 @@ __uint8_swap_uint32(uint32_t __x) return __x; } -static __inline uint16_t -__uint8_swap_uint16(uint16_t __x) +static __inline unsigned short +__uint8_swap_uint16(unsigned short __x) { __asm ("xchgb %h1, %b1" : "=q" (__x) : "0" (__x)); |