aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-11-01 23:03:30 +0000
committerLRN <lrn1986@gmail.com>2012-11-01 23:03:30 +0000
commit6e6998dee553cacb81e1363a7e57fadbdfe6eaf9 (patch)
treeb9fc2d5bcfe05cc6ab413860b0d308ed2aed1292 /src
parent0c4dec07cadc333a3a1eaca9e8dbac827185e4e7 (diff)
downloadgnunet-6e6998dee553cacb81e1363a7e57fadbdfe6eaf9.tar.gz
gnunet-6e6998dee553cacb81e1363a7e57fadbdfe6eaf9.zip
Use strrchr() instead of legacy rindex()
Diffstat (limited to 'src')
-rw-r--r--src/testbed/test_testbed_api_testbed_run.c2
-rw-r--r--src/testing_old/test_testing_large_topology.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/test_testbed_api_testbed_run.c b/src/testbed/test_testbed_api_testbed_run.c
index d39cae804..69e6fb8c9 100644
--- a/src/testbed/test_testbed_api_testbed_run.c
+++ b/src/testbed/test_testbed_api_testbed_run.c
@@ -179,7 +179,7 @@ main (int argc, char **argv)
179 char *config_filename; 179 char *config_filename;
180 int ret; 180 int ret;
181 181
182 testname = rindex (argv[0], (int) '_'); 182 testname = strrchr (argv[0], (int) '_');
183 testname++; 183 testname++;
184 if (NULL == testname) 184 if (NULL == testname)
185 { 185 {
diff --git a/src/testing_old/test_testing_large_topology.c b/src/testing_old/test_testing_large_topology.c
index 4b7e1d150..a7cab095c 100644
--- a/src/testing_old/test_testing_large_topology.c
+++ b/src/testing_old/test_testing_large_topology.c
@@ -1159,7 +1159,7 @@ main (int argc, char *argv[])
1159 char *binary_start_pos; 1159 char *binary_start_pos;
1160 char *our_binary_name; 1160 char *our_binary_name;
1161 1161
1162 binary_start_pos = rindex (argv[0], '/'); 1162 binary_start_pos = strrchr (argv[0], '/');
1163 GNUNET_assert (binary_start_pos != NULL); 1163 GNUNET_assert (binary_start_pos != NULL);
1164 topology_string = strstr (binary_start_pos, "_topology"); 1164 topology_string = strstr (binary_start_pos, "_topology");
1165 GNUNET_assert (topology_string != NULL); 1165 GNUNET_assert (topology_string != NULL);