summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-02-03 20:14:35 +0000
committerBruce Evans <bde@FreeBSD.org>1998-02-03 20:14:35 +0000
commit98a6e74553aa12394e6508befa297333f0ac5a87 (patch)
tree1bcd76d550e6d6f62f7f5f24b58aeabe677d1268 /sys/compat
parenteafe3040d40f6995c3f070871e18b4acabce531b (diff)
Notes
Diffstat (limited to 'sys/compat')
-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 f092117e2169..0ac75d9ccdb9 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))