rindex is deprecated
authorChristian Grothoff <christian@grothoff.org>
Thu, 13 Jan 2011 20:43:54 +0000 (20:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 13 Jan 2011 20:43:54 +0000 (20:43 +0000)
src/testing/test_testing_topology.c

index f9d5fb9af07cf939bac4e3a03e20377a4fd92914..cf1b3232c8610bbdd9705f1462891a38bc86ffe1 100644 (file)
@@ -1180,7 +1180,7 @@ main (int argc, char *argv[])
   char *binary_start_pos;
   char *our_binary_name;
 
-  binary_start_pos = rindex (argv[0], '/');
+  binary_start_pos = strchr (argv[0], '/');
   GNUNET_assert (binary_start_pos != NULL);
   topology_string = strstr (binary_start_pos, "_topology");
   GNUNET_assert (topology_string != NULL);