1 Use the strrchr() function instead of the deprecated rindex()
4 --- mii-diag-2.11.orig/mii-diag.c.orig 2008-06-25 11:08:52.000000000 +1000
5 +++ mii-diag-2.11.orig/mii-diag.c 2005-03-27 03:56:33.000000000 +1000
10 - char *progname = rindex(argv[0], '/') ? rindex(argv[0], '/')+1 : argv[0];
11 + char *progname = strrchr(argv[0], '/') ? strrchr(argv[0], '/')+1 : argv[0];
13 while ((c = getopt_long(argc, argv, shortopts, longopts, 0)) != EOF)
18 fprintf(stderr, "Invalid driver parameter '%s'.\n", str);
19 - str = index(str, ',');
20 + str = strchr(str, ',');
22 } else if (endstr[0] == ',') {