aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-05 18:05:09 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-05 18:05:09 +0000
commit5af906e7c834301a0f237b50e1a1474ce0cf6da0 (patch)
tree8a5a2783a458269715a05dc48236cae8b1cb1ee0 /util-linux
parent402151671b58b264f9c023e8e29615b3dc3c9acc (diff)
downloadbusybox-w32-5af906e7c834301a0f237b50e1a1474ce0cf6da0.tar.gz
busybox-w32-5af906e7c834301a0f237b50e1a1474ce0cf6da0.tar.bz2
busybox-w32-5af906e7c834301a0f237b50e1a1474ce0cf6da0.zip
rename: compare_string_array -> index_in_str_array
introduce index_in_substr_array and use it in iproute2
Diffstat (limited to 'util-linux')
-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;