From cbf0a5baa8e09b93e555bba14e24782d369c03ac Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 14 Aug 1994 04:56:31 +0000 Subject: [PATCH] index to strchr unused vars git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4144 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb425/get_phost.c | 2 +- src/lib/krb425/rd_req.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/krb425/get_phost.c b/src/lib/krb425/get_phost.c index c6d52317b..981d16ef1 100644 --- a/src/lib/krb425/get_phost.c +++ b/src/lib/krb425/get_phost.c @@ -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; diff --git a/src/lib/krb425/rd_req.c b/src/lib/krb425/rd_req.c index 64b0850eb..0dbfc69d5 100644 --- a/src/lib/krb425/rd_req.c +++ b/src/lib/krb425/rd_req.c @@ -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; -- 2.26.2