From: Mark Eichin Date: Tue, 9 Aug 1994 03:55:04 +0000 (+0000) Subject: strchr not index X-Git-Tag: krb5-1.0-beta4.2~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b74390d46cf26e2902419a6c144446793d14df1f;p=krb5.git strchr not index git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4083 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index d58221ce3..5dc314c1d 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -1689,10 +1689,9 @@ env_init() extern char **environ; register char **epp, *cp; register struct env_lst *ep; - extern char *index(); for (epp = environ; *epp; epp++) { - if (cp = index(*epp, '=')) { + if (cp = strchr(*epp, '=')) { *cp = '\0'; ep = env_define((unsigned char *)*epp, (unsigned char *)cp+1); @@ -1709,7 +1708,7 @@ env_init() && ((*ep->value == ':') || (strncmp((char *)ep->value, "unix:", 5) == 0))) { char hbuf[256+1]; - char *cp2 = index((char *)ep->value, ':'); + char *cp2 = strchr((char *)ep->value, ':'); gethostname(hbuf, 256); hbuf[256] = '\0';