diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-01-21 19:56:19 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-01-21 19:56:19 +0000 |
commit | ceb0da77f4667447c1fb3b0426f52a42c8192ddb (patch) | |
tree | a093a36fe1eda8e7103941f041d83c34fbfa065e /sys/dev/iir | |
parent | 56bc8d8e3332fb0babad93634344b7cf57024d4f (diff) | |
download | FreeBSD-src-ceb0da77f4667447c1fb3b0426f52a42c8192ddb.zip FreeBSD-src-ceb0da77f4667447c1fb3b0426f52a42c8192ddb.tar.gz |
Convert iir inlines to ANSI C function declarations.
MFC after: 1 week
Diffstat (limited to 'sys/dev/iir')
-rw-r--r-- | sys/dev/iir/iir.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/dev/iir/iir.h b/sys/dev/iir/iir.h index ad5528d..e38a9e0 100644 --- a/sys/dev/iir/iir.h +++ b/sys/dev/iir/iir.h @@ -711,31 +711,25 @@ static __inline__ u_int16_t gdt_dec16(u_int8_t *); static __inline__ u_int32_t gdt_dec32(u_int8_t *); static __inline__ void -gdt_enc16(addr, value) - u_int8_t *addr; - u_int16_t value; +gdt_enc16(u_int8_t *addr, u_int16_t value) { *(u_int16_t *)addr = htole16(value); } static __inline__ void -gdt_enc32(addr, value) - u_int8_t *addr; - u_int32_t value; +gdt_enc32(u_int8_t *addr, u_int32_t value) { *(u_int32_t *)addr = htole32(value); } static __inline__ u_int16_t -gdt_dec16(addr) - u_int8_t *addr; +gdt_dec16(u_int8_t *addr) { return le16toh(*(u_int16_t *)addr); } static __inline__ u_int32_t -gdt_dec32(addr) - u_int8_t *addr; +gdt_dec32(u_int8_t *addr) { return le32toh(*(u_int32_t *)addr); } |