diff options
author | alfred <alfred@FreeBSD.org> | 2004-09-12 07:06:48 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2004-09-12 07:06:48 +0000 |
commit | 536630fee28de5902b6951bc9871c4b22c800d87 (patch) | |
tree | d144c9933d80f74b06f0eafe3fcba1318cedbe51 /sbin/mount_autofs | |
parent | 42af796d0929c2ca45818f29f2f13e04effff327 (diff) | |
download | FreeBSD-src-536630fee28de5902b6951bc9871c4b22c800d87.zip FreeBSD-src-536630fee28de5902b6951bc9871c4b22c800d87.tar.gz |
WARNS=4 safe.
Diffstat (limited to 'sbin/mount_autofs')
-rw-r--r-- | sbin/mount_autofs/mount_autofs.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sbin/mount_autofs/mount_autofs.c b/sbin/mount_autofs/mount_autofs.c index 092c5f7..17fbb5b 100644 --- a/sbin/mount_autofs/mount_autofs.c +++ b/sbin/mount_autofs/mount_autofs.c @@ -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; |