svn commit: trunk/busybox/util-linux

vda at busybox.net vda at busybox.net
Tue Sep 19 14:14:12 UTC 2006


Author: vda
Date: 2006-09-19 07:14:12 -0700 (Tue, 19 Sep 2006)
New Revision: 16148

Log:
mount: fstabname needs to be const char*


Modified:
   trunk/busybox/util-linux/mount.c


Changeset:
Modified: trunk/busybox/util-linux/mount.c
===================================================================
--- trunk/busybox/util-linux/mount.c	2006-09-19 14:07:52 UTC (rev 16147)
+++ trunk/busybox/util-linux/mount.c	2006-09-19 14:14:12 UTC (rev 16148)
@@ -1432,7 +1432,8 @@
 	enum { OPT_ALL = 0x8 };
 
 	char *cmdopts = xstrdup(""), *fstype=0, *storage_path=0;
-	char *opt_o, *fstabname;
+	char *opt_o;
+	const char *fstabname;
 	FILE *fstab;
 	int i, j, rc = 0;
 	unsigned long opt;
@@ -1526,7 +1527,7 @@
 
 	fstab = setmntent(fstabname,"r");
 	if (!fstab)
-		bb_perror_msg_and_die("cannot read %s",fstabname);
+		bb_perror_msg_and_die("cannot read %s", fstabname);
 
 	// Loop through entries until we find what we're looking for.
 




More information about the busybox-cvs mailing list