aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-05 18:05:09 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-05 18:05:09 +0000
commitd8df0a9bd2e6fdc7a30156ed4114808b1ff1e3fb (patch)
tree8a5a2783a458269715a05dc48236cae8b1cb1ee0 /util-linux/mount.c
parenta76b1a148dd871587bfc6a579a6b245684e6b5ce (diff)
downloadbusybox-w32-d8df0a9bd2e6fdc7a30156ed4114808b1ff1e3fb.tar.gz
busybox-w32-d8df0a9bd2e6fdc7a30156ed4114808b1ff1e3fb.tar.bz2
busybox-w32-d8df0a9bd2e6fdc7a30156ed4114808b1ff1e3fb.zip
rename: compare_string_array -> index_in_str_array
introduce index_in_substr_array and use it in iproute2 git-svn-id: svn://busybox.net/trunk/busybox@16515 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--util-linux/mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index a9464baee..4069416d9 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -898,7 +898,7 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts)
898 }; 898 };
899 int val = xatoi_u(opteq + 1); 899 int val = xatoi_u(opteq + 1);
900 *opteq = '\0'; 900 *opteq = '\0';
901 switch (compare_string_array(options, opt)) { 901 switch (index_in_str_array(options, opt)) {
902 case 0: // "rsize" 902 case 0: // "rsize"
903 data.rsize = val; 903 data.rsize = val;
904 break; 904 break;
@@ -940,7 +940,7 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts)
940 break; 940 break;
941 case 12: // "mounthost" 941 case 12: // "mounthost"
942 mounthost = xstrndup(opteq+1, 942 mounthost = xstrndup(opteq+1,
943 strcspn(opteq+1," \t\n\r,")); 943 strcspn(opteq+1," \t\n\r,"));
944 break; 944 break;
945 case 13: // "mountprog" 945 case 13: // "mountprog"
946 mountprog = val; 946 mountprog = val;
@@ -996,7 +996,7 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts)
996 val = 0; 996 val = 0;
997 opt += 2; 997 opt += 2;
998 } 998 }
999 switch (compare_string_array(options, opt)) { 999 switch (index_in_str_array(options, opt)) {
1000 case 0: // "bg" 1000 case 0: // "bg"
1001 bg = val; 1001 bg = val;
1002 break; 1002 break;