From: Mark Eichin Date: Sun, 14 Aug 1994 04:56:31 +0000 (+0000) Subject: index to strchr X-Git-Tag: krb5-1.0-beta4.3~179 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cbf0a5baa8e09b93e555bba14e24782d369c03ac;p=krb5.git index to strchr unused vars git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4144 dc483132-0cff-0310-8789-dd5450dbe970 --- 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;