WARNS=4 safe.
This commit is contained in:
parent
fa3b7cae8d
commit
2d3744053b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135097
@ -45,6 +45,7 @@ usage(void) {
|
||||
|
||||
errx(1, "usage: %s node", progname);
|
||||
}
|
||||
int mymount(const char *type, const char *dir, int flags, void *data);
|
||||
|
||||
#if __FreeBSD_version < 600000
|
||||
int
|
||||
@ -54,16 +55,23 @@ mymount(const char *type, const char *dir, int flags, void *data)
|
||||
return (mount(type, dir, flags, data));
|
||||
}
|
||||
#else
|
||||
void ioset(struct iovec *iovp, const char *str);
|
||||
|
||||
void
|
||||
ioset(struct iovec *iovp, char *str)
|
||||
ioset(struct iovec *iovp, const char *str)
|
||||
{
|
||||
|
||||
iovp->iov_base = str;
|
||||
iovp->iov_base = __DECONST(char *, str);
|
||||
iovp->iov_len = strlen(str) + 1;
|
||||
}
|
||||
|
||||
int
|
||||
mymount(char *type, char *dir, int flags, void *data)
|
||||
mymount(
|
||||
const char *type,
|
||||
const char *dir,
|
||||
int flags __unused,
|
||||
void *data __unused
|
||||
)
|
||||
{
|
||||
struct iovec iov[4], *iovp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user