summaryrefslogtreecommitdiffstats
path: root/sbin/mount_reiserfs/mount_reiserfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount_reiserfs/mount_reiserfs.c')
-rw-r--r--sbin/mount_reiserfs/mount_reiserfs.c7
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);
OpenPOWER on IntegriCloud