diff options
author | Greg Hudson <ghudson@mit.edu> | 2014-07-05 11:50:58 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2014-07-08 19:19:24 -0400 |
commit | 02a1123cf44381690c28f18ab2c4ba8036200539 (patch) | |
tree | 821ad7e29d2f90227b6f12dc63aaae948baa2447 /src/plugins/kdb/ldap | |
parent | 6a8da91b691b8f51ac62d8142cd2fa32a69f3d15 (diff) | |
download | krb5-02a1123cf44381690c28f18ab2c4ba8036200539.zip krb5-02a1123cf44381690c28f18ab2c4ba8036200539.tar.gz krb5-02a1123cf44381690c28f18ab2c4ba8036200539.tar.bz2 |
Include autoconf.h before system headers
Include autoconf.h (either directly or via proxy) before system
headers, so that feature test macros defined there can affect the
system namespace. Where include order was changed, eliminate some
redundant or unnecessary includes.
ticket: 7961
Diffstat (limited to 'src/plugins/kdb/ldap')
-rw-r--r-- | src/plugins/kdb/ldap/ldap_util/kdb5_ldap_policy.c | 2 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c | 1 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c | 1 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c | 4 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h | 12 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c | 5 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c | 2 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c | 2 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/lockout.c | 3 |
9 files changed, 11 insertions, 21 deletions
diff --git a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_policy.c b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_policy.c index 6ec711f..5de0494 100644 --- a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_policy.c +++ b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_policy.c @@ -31,8 +31,6 @@ * Create / Delete / Modify / View / List policy objects. */ -#include <stdio.h> -#include <time.h> #include <k5-int.h> #include <kadm5/admin.h> #include "kdb5_ldap_util.h" diff --git a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c index 7494928..ba8c12b 100644 --- a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c +++ b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c @@ -81,7 +81,6 @@ * Create / Modify / Destroy / View / List realm(s) */ -#include <stdio.h> #include <k5-int.h> #include <kadm5/admin.h> #include <adm_proto.h> diff --git a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c index 05fac49..64d0f91 100644 --- a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c +++ b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c @@ -36,7 +36,6 @@ * functions manage the service objects. */ -#include <stdio.h> #include <k5-int.h> #include "kdb5_ldap_util.h" #include "kdb5_ldap_list.h" diff --git a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c index fe1b70e..8d6f375 100644 --- a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c +++ b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c @@ -75,11 +75,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#include <k5-int.h> #include <locale.h> -#include <stdio.h> #include <time.h> - -#include <k5-int.h> #include <kadm5/admin.h> #include <adm_proto.h> #include "kdb5_ldap_util.h" diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h index dcd313b..aa8e7ce 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h +++ b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h @@ -32,6 +32,12 @@ #ifndef _KDB_LDAP_H #define _KDB_LDAP_H 1 +#include "k5-int.h" +#include <k5-thread.h> +#include <kdb5.h> +#include "ldap_krbcontainer.h" +#include "ldap_realm.h" + /* We want the interfaces marked "deprecated" in OpenLDAP. */ #define LDAP_DEPRECATED 1 #include <ldap.h> @@ -51,12 +57,6 @@ # endif #endif /* BUILD_WITH_BROKEN_LDAP */ -#include <k5-thread.h> -#include <kdb5.h> -#include "k5-int.h" -#include "ldap_krbcontainer.h" -#include "ldap_realm.h" - extern struct timeval timelimit; #define DEFAULT_CONNS_PER_SERVER 5 diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c index a0664bc..23be4a9 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c @@ -31,9 +31,6 @@ * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#include <string.h> -#include <time.h> -#include <ctype.h> #include "kdb_ldap.h" #include "ldap_misc.h" #include "ldap_handle.h" @@ -41,6 +38,8 @@ #include "ldap_principal.h" #include "princ_xdr.h" #include "ldap_pwd_policy.h" +#include <time.h> +#include <ctype.h> #ifdef NEED_STRPTIME_PROTO extern char *strptime (const char *, const char *, struct tm *); diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c index b9bd059..21ede0b 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c @@ -32,7 +32,6 @@ * Use is subject to license terms. */ -#include <time.h> #include "ldap_main.h" #include "kdb_ldap.h" #include "ldap_principal.h" @@ -41,6 +40,7 @@ #include "ldap_pwd_policy.h" #include "ldap_err.h" #include <kadm5/admin.h> +#include <time.h> extern char* principal_attributes[]; extern char* max_pwd_life_attr[]; diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c index fc00049..94ad9c7 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c @@ -28,10 +28,10 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include <ctype.h> #include "ldap_main.h" #include "kdb_ldap.h" #include "ldap_service_stash.h" +#include <ctype.h> /* Decode a password of the form {HEX}<hexstring>. */ static krb5_error_code diff --git a/src/plugins/kdb/ldap/libkdb_ldap/lockout.c b/src/plugins/kdb/ldap/libkdb_ldap/lockout.c index 83d79e0..5a225d4 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/lockout.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/lockout.c @@ -24,9 +24,6 @@ * or implied warranty. */ -#include <stdio.h> -#include <errno.h> - #include <k5-int.h> #include <kadm5/admin.h> #include <kdb.h> |