pull up r18813 from trunk
authorTom Yu <tlyu@mit.edu>
Thu, 16 Nov 2006 21:18:40 +0000 (21:18 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 16 Nov 2006 21:18:40 +0000 (21:18 +0000)
commite4c56018f1381fdfd5261e33cd33eab109e6d875
treeab3533362bb84ddef42a43b8d24a946805df7855
parentfdc3985f85f3bfe2b2b9fa80115d296fecce6a57
pull up r18813 from trunk

 r18813@cathode-dark-space:  raeburn | 2006-11-15 19:51:21 -0500
 ticket: new
 subject: fix some warnings in ldap code
 target_version: 1.6
 tags: pullup

 * libkdb_ldap/ldap_realm.c (ignore_duplicates, compare): Unused functions deleted.
 (krb5_ldap_modify_realm, krb5_ldap_read_realm_params): Conditionalize declarations of
 automatic variables that are only used for eDirectory.
 * libkdb_ldap/ldap_service_stash.c (tohex): Use one sprintf call instead of two.
 (dec_password): Use an unsigned type to fetch values with %x.
 * libkdb_ldap/ldap_realm.h (ldap_filter_correct): Declare.
 * libkdb_dlap/ldap_misc.c (my_strndup): Only define if HAVE_LDAP_STR2DN.
 (populate_krb5_db_entry): Remove unused automatic variable.
 * ldap_util/kdb5_ldap_util.c (cmd_table): Fix typo in preprocessing conditional.
 * ldap_util/kdb5_ldap_realm.c (get_ticket_policy): Declarations first, then code.
 * ldap_util/kdb5_ldap_services.c (kdb5_ldap_stash_service_password): On error, increment
 exit_status; don't return a value.
 * ldap_util/kdb5_ldap_services.h (kdb5_ldap_stash_service_password): Update decl.

ticket: 4772
version_fixed: 1.6

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@18824 dc483132-0cff-0310-8789-dd5450dbe970
src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.h
src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_realm.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_realm.h
src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c