From d77b21f01e6f1635c0e506f9f29867d48c665568 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 1 Oct 1994 02:17:55 +0000 Subject: [PATCH] index()->strchr() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4418 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb425/ChangeLog | 6 ++++++ src/lib/krb425/kuserok.c | 3 ++- src/lib/krb425/realmhost.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/krb425/ChangeLog b/src/lib/krb425/ChangeLog index dbe84bfc5..17f35c052 100644 --- a/src/lib/krb425/ChangeLog +++ b/src/lib/krb425/ChangeLog @@ -1,3 +1,9 @@ +Fri Sep 30 22:00:19 1994 Theodore Y. Ts'o (tytso@dcl) + + * realmhost.c (krb_realmofhost): index->strchr + + * kuserkok.c (krb_kuserok): index->strchr + Thu Sep 29 15:24:30 1994 Theodore Y. Ts'o (tytso@dcl) * 425error.c (krb425error): Recognize the KRB5_KDCREP_SKEW and diff --git a/src/lib/krb425/kuserok.c b/src/lib/krb425/kuserok.c index 6d1e2922e..17d275d3a 100644 --- a/src/lib/krb425/kuserok.c +++ b/src/lib/krb425/kuserok.c @@ -28,6 +28,7 @@ #include "krb425.h" #include +#include #include #if defined(aix) /* AIX needs BSD defined to some value for socket.h */ #define _BSD 44 @@ -137,7 +138,7 @@ kuserok(kdata, luser) linebuf[BUFSIZ-1] = '\0'; newline = NULL; /* nuke the newline if it exists */ - if (newline = index(linebuf, '\n')) + if (newline = strchr(linebuf, '\n')) *newline = '\0'; rc = kname_parse(principal, inst, realm, linebuf); if (rc == KSUCCESS) { diff --git a/src/lib/krb425/realmhost.c b/src/lib/krb425/realmhost.c index f040cf6df..2a989904d 100644 --- a/src/lib/krb425/realmhost.c +++ b/src/lib/krb425/realmhost.c @@ -24,6 +24,7 @@ * krb_realmofhost for krb425 */ +#include #include "krb425.h" @@ -36,7 +37,7 @@ char *host; static char ret_realm[REALM_SZ+1]; - domain = index(host, '.'); + domain = strchr(host, '.'); /* prepare default */ if (domain) { -- 2.26.2