diff options
Diffstat (limited to 'kerberosIV')
-rw-r--r-- | kerberosIV/kdb/krb_lib.c | 10 | ||||
-rw-r--r-- | kerberosIV/krb/get_in_tkt.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/kerberosIV/kdb/krb_lib.c b/kerberosIV/kdb/krb_lib.c index 7763e455cf2..83167a16dd4 100644 --- a/kerberosIV/kdb/krb_lib.c +++ b/kerberosIV/kdb/krb_lib.c @@ -1,4 +1,4 @@ -/* $Id: krb_lib.c,v 1.2 1996/09/16 18:48:51 millert Exp $ */ +/* $Id: krb_lib.c,v 1.3 1997/01/17 07:11:52 millert Exp $ */ /*- * Copyright (C) 1989 by the Massachusetts Institute of Technology @@ -108,8 +108,8 @@ kerb_get_principal(name, inst, principal, max, more) * preceeded by a backslash. */ wild = 0; - if (index(name, '*') || index(name, '?') || - index(inst, '*') || index(inst, '?')) + if (strchr(name, '*') || strchr(name, '?') || + strchr(inst, '*') || strchr(inst, '?')) wild = 1; if (!wild) { @@ -214,8 +214,8 @@ kerb_get_dba(name, inst, dba, max, more) */ wild = 0; - if (index(name, '*') || index(name, '?') || - index(inst, '*') || index(inst, '?')) + if (strchr(name, '*') || strchr(name, '?') || + strchr(inst, '*') || strchr(inst, '?')) wild = 1; if (!wild) { diff --git a/kerberosIV/krb/get_in_tkt.c b/kerberosIV/krb/get_in_tkt.c index 55624978669..55855750468 100644 --- a/kerberosIV/krb/get_in_tkt.c +++ b/kerberosIV/krb/get_in_tkt.c @@ -150,7 +150,7 @@ krb_get_pw_in_tkt(user, instance, realm, service, sinstance, life, password) #ifdef NOENCRYPTION /* * $Source: /cvs/OpenBSD/src/kerberosIV/krb/Attic/get_in_tkt.c,v $ - * $Author: tholo $ + * $Author: millert $ * * Copyright 1985, 1986, 1987, 1988 by the Massachusetts Institute * of Technology. @@ -165,7 +165,7 @@ krb_get_pw_in_tkt(user, instance, realm, service, sinstance, life, password) #ifndef lint static char rcsid_read_password_c[] = -"Bones$Header: /cvs/OpenBSD/src/kerberosIV/krb/Attic/get_in_tkt.c,v 1.2 1996/02/05 10:06:40 tholo Exp $"; +"Bones$Header: /cvs/OpenBSD/src/kerberosIV/krb/Attic/get_in_tkt.c,v 1.3 1997/01/17 07:11:54 millert Exp $"; #endif /* lint */ #include <des.h> @@ -251,7 +251,7 @@ placebo_read_pw_string(s,max,prompt,verify) clearerr(stdin); continue; } - if ((ptr = index(s, '\n'))) + if ((ptr = strchr(s, '\n'))) *ptr = '\0'; if (verify) { printf("\nVerifying, please re-enter %s",prompt); @@ -260,7 +260,7 @@ placebo_read_pw_string(s,max,prompt,verify) clearerr(stdin); continue; } - if ((ptr = index(key_string, '\n'))) + if ((ptr = strchr(key_string, '\n'))) *ptr = '\0'; if (strcmp(s,key_string)) { printf("\n\07\07Mismatch - try again\n"); |