+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
#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
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) {
* krb_realmofhost for krb425
*/
+#include <string.h>
#include "krb425.h"
static char ret_realm[REALM_SZ+1];
- domain = index(host, '.');
+ domain = strchr(host, '.');
/* prepare default */
if (domain) {