aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mntopts.h
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2005-11-13 01:27:57 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2005-11-13 01:27:57 +0000
commitb19e74ca20dbf29972cbb6b6d70a77992a93eff0 (patch)
tree077796e9e14320ad6f899ca9a21cd18bccad56cd /sbin/mount/mntopts.h
parent25efbfb212be7d8b51b79229e5891d7ecb58de12 (diff)
downloadsrc-b19e74ca20dbf29972cbb6b6d70a77992a93eff0.tar.gz
src-b19e74ca20dbf29972cbb6b6d70a77992a93eff0.zip
- Make size parameter to build_iovec() a size_t, not an int
- Add build_iovec_argf() helper function, for help converting old mount options which used the mount_argf() function for the mount() syscall. Discussed with: phk
Notes
Notes: svn path=/head/; revision=152354
Diffstat (limited to 'sbin/mount/mntopts.h')
-rw-r--r--sbin/mount/mntopts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 17674da1b600..13a3b532664f 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -95,4 +95,5 @@ void getmntopts(const char *, const struct mntopt *, int *, int *);
void rmslashes(char *, char *);
void checkpath(const char *, char resolved_path[]);
extern int getmnt_silent;
-void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, int len);
+void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len);
+void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);