mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01:00
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).
This commit is contained in:
parent
eafe3040d4
commit
98a6e74553
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33044
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user