mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 15:32:45 +00:00
Changes to reflect that size_t parameter to build_iovec() is a size_t.
This commit is contained in:
parent
c02fbedfee
commit
15ee67c1fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152357
@ -52,6 +52,7 @@ main(int argc, char *argv[])
|
||||
struct iovec *iov;
|
||||
int ch, mntflags, iovlen;
|
||||
char *dev, *dir, mntpath[MAXPATHLEN];
|
||||
char fstype[] = "reiserfs";
|
||||
|
||||
mntflags = 0;
|
||||
while ((ch = getopt(argc, argv, "o:")) != -1) {
|
||||
@ -87,9 +88,9 @@ main(int argc, char *argv[])
|
||||
* in mntopts.h. */
|
||||
iov = NULL;
|
||||
iovlen = 0;
|
||||
build_iovec(&iov, &iovlen, "fstype", "reiserfs", -1);
|
||||
build_iovec(&iov, &iovlen, "fspath", mntpath, -1);
|
||||
build_iovec(&iov, &iovlen, "from", dev, -1);
|
||||
build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "from", dev, (size_t)-1);
|
||||
|
||||
if (nmount(iov, iovlen, mntflags) < 0)
|
||||
err(EX_OSERR, "%s", dev);
|
||||
|
Loading…
Reference in New Issue
Block a user