diff options
author | bde <bde@FreeBSD.org> | 1998-02-03 20:14:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-02-03 20:14:35 +0000 |
commit | a851a9f7138b911f7a3767eb22c27129fbb91f71 (patch) | |
tree | a098cbacd3a2ec03a81ed08b932a34fdec74253a /sys | |
parent | a3d023ad39f90cc76f0cec43c49be093b78685ad (diff) | |
download | FreeBSD-src-a851a9f7138b911f7a3767eb22c27129fbb91f71.zip FreeBSD-src-a851a9f7138b911f7a3767eb22c27129fbb91f71.tar.gz |
Changed `inline' to `__inline' so that this file can be compiled by
`gcc -ansi'.
Changed NULL to 0 so that this file is more self-sufficient (now
only <sys/types.h> is a prerequisite).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/netbsd/dvcfg.h | 6 | ||||
-rw-r--r-- | sys/i386/include/dvcfg.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/compat/netbsd/dvcfg.h b/sys/compat/netbsd/dvcfg.h index f092117..0ac75d9 100644 --- a/sys/compat/netbsd/dvcfg.h +++ b/sys/compat/netbsd/dvcfg.h @@ -49,15 +49,15 @@ struct dvcfg_hwsel { #define DVCFG_HWSEL_SZ(array) (sizeof(array) / sizeof(dvcfg_hw_t)) -static inline dvcfg_hw_t dvcfg_hw __P((struct dvcfg_hwsel *, u_int)); +static __inline dvcfg_hw_t dvcfg_hw __P((struct dvcfg_hwsel *, u_int)); -static inline dvcfg_hw_t +static __inline dvcfg_hw_t dvcfg_hw(selp, num) struct dvcfg_hwsel *selp; u_int num; { - return ((num >= selp->cfg_max) ? NULL : selp->cfg_sel[num]); + return ((num >= selp->cfg_max) ? 0 : selp->cfg_sel[num]); } #define DVCFG_HW(SELP, NUM) dvcfg_hw((SELP), (NUM)) diff --git a/sys/i386/include/dvcfg.h b/sys/i386/include/dvcfg.h index f092117..0ac75d9 100644 --- a/sys/i386/include/dvcfg.h +++ b/sys/i386/include/dvcfg.h @@ -49,15 +49,15 @@ struct dvcfg_hwsel { #define DVCFG_HWSEL_SZ(array) (sizeof(array) / sizeof(dvcfg_hw_t)) -static inline dvcfg_hw_t dvcfg_hw __P((struct dvcfg_hwsel *, u_int)); +static __inline dvcfg_hw_t dvcfg_hw __P((struct dvcfg_hwsel *, u_int)); -static inline dvcfg_hw_t +static __inline dvcfg_hw_t dvcfg_hw(selp, num) struct dvcfg_hwsel *selp; u_int num; { - return ((num >= selp->cfg_max) ? NULL : selp->cfg_sel[num]); + return ((num >= selp->cfg_max) ? 0 : selp->cfg_sel[num]); } #define DVCFG_HW(SELP, NUM) dvcfg_hw((SELP), (NUM)) |