diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h index 26947e162ce0..bb0c0a764403 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);