index to strchr
authorMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:56:31 +0000 (04:56 +0000)
committerMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:56:31 +0000 (04:56 +0000)
unused vars

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4144 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb425/get_phost.c
src/lib/krb425/rd_req.c

index c6d52317b113900c8e1f9acb176fc3ee84a1fbb4..981d16ef14a720614ab9a68cf4b0d9faadb3dc1c 100644 (file)
@@ -42,7 +42,7 @@ char *alias;
        if ((h = gethostbyname(alias)) != (struct hostent *)0 ) {
                char *p;
 #ifdef OLD_CRUFT
-               if (p = index( h->h_name, '.' ))
+               if (p = strchr( h->h_name, '.' ))
                        *p = 0;
 #endif
                p = phost = h->h_name;
index 64b0850eb585dee1edb310ee7bc4df8b47c1f510..0dbfc69d587a36099b7fa115bf0a15745caa383f 100644 (file)
@@ -64,7 +64,6 @@ char *fn;
        extern int gethostname();
        int use_set_key = 0;
        char file_name[MAXPATHLEN];
-       int tmp;
 
        if (from_addr) {
                peer.addrtype = ADDRTYPE_INET;