index()->strchr()
authorTheodore Tso <tytso@mit.edu>
Sat, 1 Oct 1994 02:17:55 +0000 (02:17 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 1 Oct 1994 02:17:55 +0000 (02:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4418 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb425/ChangeLog
src/lib/krb425/kuserok.c
src/lib/krb425/realmhost.c

index dbe84bfc5663f17d80e9daa039d2bcd71f0df5ce..17f35c05217448a20181b91700860479b9f3d1fb 100644 (file)
@@ -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
index 6d1e2922e78850d3646f4ee098b575f52e431dba..17d275d3a004bce15bc7e725d1322ebe1de14fe5 100644 (file)
@@ -28,6 +28,7 @@
 #include "krb425.h"
 
 #include <pwd.h>
+#include <string.h>
 #include <sys/param.h>
 #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) {
index f040cf6dfdfd885325f3ff1633ba3f8e40a0c4b3..2a989904dfd08cf1f71970148948e029478225a8 100644 (file)
@@ -24,6 +24,7 @@
  * krb_realmofhost for krb425
  */
 
+#include <string.h>
 
 #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) {