diff options
author | ed <ed@FreeBSD.org> | 2009-02-26 20:59:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-26 20:59:05 +0000 |
commit | e2be17ec8c033846c60a3c3371e6709f46d8efcb (patch) | |
tree | c45658370bc2330138d202baa86af521f2c135cf /usr.sbin/makefs | |
parent | 4a4a263618990b8afff0492a5ce9d9b350097834 (diff) | |
download | FreeBSD-src-e2be17ec8c033846c60a3c3371e6709f46d8efcb.zip FreeBSD-src-e2be17ec8c033846c60a3c3371e6709f46d8efcb.tar.gz |
Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.
Submitted by: Pawel Worach <pawel.worach@gmail.com>
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r-- | usr.sbin/makefs/ffs/ufs_bswap.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.sbin/makefs/ffs/ufs_bswap.h b/usr.sbin/makefs/ffs/ufs_bswap.h index a6b1270..c368255 100644 --- a/usr.sbin/makefs/ffs/ufs_bswap.h +++ b/usr.sbin/makefs/ffs/ufs_bswap.h @@ -58,23 +58,17 @@ static __inline u_int32_t ufs_rw32 __P((u_int32_t, int)); static __inline u_int64_t ufs_rw64 __P((u_int64_t, int)); static __inline u_int16_t -ufs_rw16(a, ns) - u_int16_t a; - int ns; +ufs_rw16(u_int16_t a, int ns) { return ((ns) ? bswap16(a) : (a)); } static __inline u_int32_t -ufs_rw32(a, ns) - u_int32_t a; - int ns; +ufs_rw32(u_int32_t a, int ns) { return ((ns) ? bswap32(a) : (a)); } static __inline u_int64_t -ufs_rw64(a, ns) - u_int64_t a; - int ns; +ufs_rw64(u_int64_t a, int ns) { return ((ns) ? bswap64(a) : (a)); } |