strchr not index
authorMark Eichin <eichin@mit.edu>
Tue, 9 Aug 1994 03:55:04 +0000 (03:55 +0000)
committerMark Eichin <eichin@mit.edu>
Tue, 9 Aug 1994 03:55:04 +0000 (03:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4083 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnet/commands.c

index d58221ce3be474cb0791479b5b82d651022407f1..5dc314c1d750c46e0a7175776d3ace5ee19344ba 100644 (file)
@@ -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';