[casper] fix compilation when casper is disabled.
This triggers an error in gcc-mips 6.4.0 complaining about unused arguments. Tested: * compiled/run on mips32; nothing complained.
This commit is contained in:
parent
151744cf5c
commit
d2fd7f28fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346322
@ -108,8 +108,12 @@ fileargs_cinitnv(cap_channel_t *cas __unused, nvlist_t *limits)
|
||||
lstat(name, sb)
|
||||
#define fileargs_open(fa, name) \
|
||||
open(name, fa->fa_flags, fa->fa_mode)
|
||||
#define fileargs_fopen(fa, name, mode) \
|
||||
fopen(name, mode)
|
||||
static inline
|
||||
FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode)
|
||||
{
|
||||
(void) fa;
|
||||
return (fopen(name, mode));
|
||||
}
|
||||
#define fileargs_free(fa) (free(fa))
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user