make changepw compile again even without dns support
authorKen Raeburn <raeburn@mit.edu>
Wed, 29 Sep 1999 01:11:00 +0000 (01:11 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 29 Sep 1999 01:11:00 +0000 (01:11 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11855 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/changepw.c

index f3276e31f0cc169dc67876483013c4a37da8cc99..208125a8dccf306bf92cb971fdf3bd4fe247c2b3 100644 (file)
@@ -1,3 +1,9 @@
+1999-09-28  Ken Raeburn  <raeburn@mit.edu>
+
+       * 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  <raeburn@mit.edu>
 
        Changes from Jeffrey Altman to look up kpasswd server using DNS.
index 1235b52af68fe874c10413237183acb45ae5c31a..8a577c2222bcbddd4874826ab710b7466b451b4a 100644 (file)
  * 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 */
 
     /*