summaryrefslogtreecommitdiffstats
path: root/sys/compat/netbsd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-03 20:14:35 +0000
committerbde <bde@FreeBSD.org>1998-02-03 20:14:35 +0000
commita851a9f7138b911f7a3767eb22c27129fbb91f71 (patch)
treea098cbacd3a2ec03a81ed08b932a34fdec74253a /sys/compat/netbsd
parenta3d023ad39f90cc76f0cec43c49be093b78685ad (diff)
downloadFreeBSD-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/compat/netbsd')
-rw-r--r--sys/compat/netbsd/dvcfg.h6
1 files changed, 3 insertions, 3 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))
OpenPOWER on IntegriCloud