initialize_kdb5_error_table();
initialize_isod_error_table();
- if (rindex(argv[0], '/'))
- argv[0] = rindex(argv[0], '/')+1;
+ if (strrchr(argv[0], '/'))
+ argv[0] = strrchr(argv[0], '/')+1;
while ((optchar = getopt(argc, argv, "d:r:k:M:e:")) != EOF) {
switch(optchar) {
initialize_kdb5_error_table();
initialize_isod_error_table();
- if (rindex(argv[0], '/'))
- argv[0] = rindex(argv[0], '/')+1;
+ if (strrchr(argv[0], '/'))
+ argv[0] = strrchr(argv[0], '/')+1;
while ((optchar = getopt(argc, argv, "d:")) != EOF) {
switch(optchar) {
int keytypedone = 0;
krb5_enctype etype = -1;
- if (rindex(argv[0], '/'))
- argv[0] = rindex(argv[0], '/')+1;
+ if (strrchr(argv[0], '/'))
+ argv[0] = strrchr(argv[0], '/')+1;
initialize_krb5_error_table();
initialize_kdb5_error_table();
krb5_init_ets();
- if (rindex(argv[0], '/'))
- argv[0] = rindex(argv[0], '/')+1;
+ if (strrchr(argv[0], '/'))
+ argv[0] = strrchr(argv[0], '/')+1;
while ((c = getopt(argc, argv, "c:")) != EOF) {
switch (c) {
krb5_init_ets();
- if (rindex(argv[0], '/'))
- argv[0] = rindex(argv[0], '/')+1;
+ if (strrchr(argv[0], '/'))
+ argv[0] = strrchr(argv[0], '/')+1;
while ((option = getopt(argc, argv, "rpl:c:")) != EOF) {
switch (option) {
initialize_isod_error_table();
- if (rindex(argv[0], '/'))
- argv[0] = rindex(argv[0], '/')+1;
+ if (strrchr(argv[0], '/'))
+ argv[0] = strrchr(argv[0], '/')+1;
while ((c = getopt(argc, argv, "fc:")) != EOF) {
switch (c) {