apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1091161 - /apr/apr/trunk/ldap/apr_ldap_rebind.c
Date Mon, 11 Apr 2011 18:31:50 GMT
Author: fuankg
Date: Mon Apr 11 18:31:50 2011
New Revision: 1091161

URL: http://svn.apache.org/viewvc?rev=1091161&view=rev
Log:
Cleanup apr_ldap_rebind.c.

Removed obsolete header includes; moved apr_ldap.h
inclusion + check for APR_HAS_LDAP up so that we
skip further senseless header includes when we dont
compile with LDAP.

Modified:
    apr/apr/trunk/ldap/apr_ldap_rebind.c

Modified: apr/apr/trunk/ldap/apr_ldap_rebind.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/ldap/apr_ldap_rebind.c?rev=1091161&r1=1091160&r2=1091161&view=diff
==============================================================================
--- apr/apr/trunk/ldap/apr_ldap_rebind.c (original)
+++ apr/apr/trunk/ldap/apr_ldap_rebind.c Mon Apr 11 18:31:50 2011
@@ -22,22 +22,20 @@
  */
 
 #include "apr.h"
-#include "apu.h"
 #include "apr_private.h"
+#include "apr_ldap.h"
+
+#if APR_HAS_LDAP
 
 #if APR_HAVE_MODULAR_DSO
 #define APU_DSO_LDAP_BUILD
 #endif
 
-#include "apr_ldap.h"
 #include "apr_errno.h"
 #include "apr_strings.h"
-#include "apr_ldap_rebind.h"
 
 #include "stdio.h"
 
-#if APR_HAS_LDAP
-
 /* Used to store information about connections for use in the referral rebind callback. */
 struct apr_ldap_rebind_entry {
     apr_pool_t *pool;
@@ -50,7 +48,6 @@ typedef struct apr_ldap_rebind_entry apr
 
 
 #ifdef NETWARE
-#include "apr_private.h"
 #define get_apd                 APP_DATA* apd = (APP_DATA*)get_app_data(gLibId);
 #define apr_ldap_xref_lock      ((apr_thread_mutex_t *)(apd->gs_ldap_xref_lock))
 #define xref_head               ((apr_ldap_rebind_entry_t *)(apd->gs_xref_head))



Mime
View raw message