diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-01-17 22:58:32 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-01-17 22:58:32 +0000 |
commit | f359f1745b47fe7efe14a480faaba06d56f85de0 (patch) | |
tree | 06c943a4d6922f6cf9cf4451f872229aa2aba5ed /sys | |
parent | bb30ff671874b1ac91a18be3f4e87729445dd46f (diff) | |
download | FreeBSD-src-f359f1745b47fe7efe14a480faaba06d56f85de0.zip FreeBSD-src-f359f1745b47fe7efe14a480faaba06d56f85de0.tar.gz |
- Style fixes.
- llabs() -> qabs(); long long isn't valid for the kernel.
Submitted by: bde
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/libkern.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h index 26947e1..bb0c0a7 100644 --- a/sys/sys/libkern.h +++ b/sys/sys/libkern.h @@ -63,9 +63,9 @@ static __inline quad_t qmin(quad_t a, quad_t b) { return (a < b ? a : b); } static __inline u_long ulmax(u_long a, u_long b) { return (a > b ? a : b); } static __inline u_long ulmin(u_long a, u_long b) { return (a < b ? a : b); } -static __inline int abs(int a) { return (((a) < 0) ? -(a) : (a)); } -static __inline long labs(long a) { return (((a) < 0) ? -(a) : (a)); } -static __inline long long llabs(long a) { return (((a) < 0) ? -(a) : (a)); } +static __inline int abs(int a) { return (a < 0 ? -a : a); } +static __inline long labs(long a) { return (a < 0 ? -a : a); } +static __inline quad_t qabs(quad_t a) { return (a < 0 ? -a : a); } /* Prototypes for non-quad routines. */ uint32_t arc4random(void); |