Changes to reflect that size_t parameter to build_iovec() is a size_t.

This commit is contained in:
Craig Rodrigues 2005-11-13 01:45:32 +00:00
parent c02fbedfee
commit 15ee67c1fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152357

View File

@ -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);