diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-05-24 10:50:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-05-24 10:50:35 +0000 |
commit | 5c9cf8367cb3f1e5b06fa5a296e936ee65653108 (patch) | |
tree | 489cd43773e1bc29d3e2975ade585b1db40e8c65 /sys/lib/libkern | |
parent | 65dfddb48cf91b0864abb5748e92e10733a4ab24 (diff) |
ansi func decls
Diffstat (limited to 'sys/lib/libkern')
-rw-r--r-- | sys/lib/libkern/libkern.h | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/sys/lib/libkern/libkern.h b/sys/lib/libkern/libkern.h index 7eac2cc7bf8..36655eae4d7 100644 --- a/sys/lib/libkern/libkern.h +++ b/sys/lib/libkern/libkern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libkern.h,v 1.25 2008/10/15 23:23:51 deraadt Exp $ */ +/* $OpenBSD: libkern.h,v 1.26 2009/05/24 10:50:34 jsg Exp $ */ /* $NetBSD: libkern.h,v 1.7 1996/03/14 18:52:08 christos Exp $ */ /*- @@ -55,57 +55,48 @@ LIBKERN_INLINE int abs(int); #ifdef LIBKERN_BODY LIBKERN_INLINE int -imax(a, b) - int a, b; +imax(int a, int b) { return (a > b ? a : b); } LIBKERN_INLINE int -imin(a, b) - int a, b; +imin(int a, int b) { return (a < b ? a : b); } LIBKERN_INLINE long -lmax(a, b) - long a, b; +lmax(long a, long b) { return (a > b ? a : b); } LIBKERN_INLINE long -lmin(a, b) - long a, b; +lmin(long a, long b) { return (a < b ? a : b); } LIBKERN_INLINE u_int -max(a, b) - u_int a, b; +max(u_int a, u_int b) { return (a > b ? a : b); } LIBKERN_INLINE u_int -min(a, b) - u_int a, b; +min(u_int a, u_int b) { return (a < b ? a : b); } LIBKERN_INLINE u_long -ulmax(a, b) - u_long a, b; +ulmax(u_long a, u_long b) { return (a > b ? a : b); } LIBKERN_INLINE u_long -ulmin(a, b) - u_long a, b; +ulmin(u_long a, u_long b) { return (a < b ? a : b); } LIBKERN_INLINE int -abs(j) - int j; +abs(int j) { return(j < 0 ? -j : j); } |