diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-11-13 01:45:32 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-11-13 01:45:32 +0000 |
commit | 647190b3bfcac7e9562970bffc5f29458160a537 (patch) | |
tree | 071b79fa65e46cc4762086ab3be0d2bc4aadc642 /sbin | |
parent | 6585db86dea45e099a667fc7ed8279e5edef0769 (diff) | |
download | FreeBSD-src-647190b3bfcac7e9562970bffc5f29458160a537.zip FreeBSD-src-647190b3bfcac7e9562970bffc5f29458160a537.tar.gz |
Changes to reflect that size_t parameter to build_iovec() is a size_t.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_reiserfs/mount_reiserfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/mount_reiserfs/mount_reiserfs.c b/sbin/mount_reiserfs/mount_reiserfs.c index b7c71ad0..5c4e6fc 100644 --- a/sbin/mount_reiserfs/mount_reiserfs.c +++ b/sbin/mount_reiserfs/mount_reiserfs.c @@ -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); |