From: Ken Raeburn Date: Wed, 29 Sep 1999 01:11:00 +0000 (+0000) Subject: make changepw compile again even without dns support X-Git-Tag: krb5-1.2-beta1~217 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3a7e028b18015d7258fb22f61739bd74aacce98;p=krb5.git make changepw compile again even without dns support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11855 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index f3276e31f..208125a8d 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,9 @@ +1999-09-28 Ken Raeburn + + * changepw.c (krb5_locate_kpasswd): Declare local variable i even + when DNS code is not in use. + (krb5_locate_srv_conf, krb5_locate_srv_dns): Delete declarations. + 1999-09-21 Ken Raeburn Changes from Jeffrey Altman to look up kpasswd server using DNS. diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c index 1235b52af..8a577c222 100644 --- a/src/lib/krb5/os/changepw.c +++ b/src/lib/krb5/os/changepw.c @@ -49,12 +49,6 @@ * Wrapper function for the two backends */ -krb5_error_code -krb5_locate_srv_conf(context, realm, name, addr_pp, naddrs, master_index, nmasters); -#ifdef KRB5_DNS_LOOKUP -krb5_error_code krb5_locate_srv_dns(realm, service, protocol, addr_pp, naddrs); -#endif - static krb5_error_code krb5_locate_kpasswd(context, realm, addr_pp, naddrs, master_index, nmasters) krb5_context context; @@ -65,10 +59,11 @@ krb5_locate_kpasswd(context, realm, addr_pp, naddrs, master_index, nmasters) int *nmasters; { krb5_error_code code; + int i; #ifdef KRB5_DNS_LOOKUP struct sockaddr *admin_addr_p, *kdc_addr_p; int nadmin_addrs, nkdc_addrs; - int i,j; + int j; #endif /* KRB5_DNS_LOOKUP */ /*