apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1091211 - /apr/apr/trunk/ldap/apr_ldap_rebind.c
Date Mon, 11 Apr 2011 21:03:29 GMT
Author: fuankg
Date: Mon Apr 11 21:03:29 2011
New Revision: 1091211

URL: http://svn.apache.org/viewvc?rev=1091211&view=rev
Log:
Fixed Netware build issue with the casted defines.

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=1091211&r1=1091210&r2=1091211&view=diff
==============================================================================
--- apr/apr/trunk/ldap/apr_ldap_rebind.c (original)
+++ apr/apr/trunk/ldap/apr_ldap_rebind.c Mon Apr 11 21:03:29 2011
@@ -48,15 +48,16 @@ typedef struct apr_ldap_rebind_entry apr
 
 
 #ifdef NETWARE
-#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))
-#else
+#define get_apd \
+    APP_DATA* apd = (APP_DATA*)get_app_data(gLibId); \
+    apr_ldap_xref_lock = (apr_thread_mutex_t *)apd->gs_ldap_xref_lock; \
+    xref_head = (apr_ldap_rebind_entry_t *)apd->gs_xref_head;
+#endif
+
 #if APR_HAS_THREADS
 static apr_thread_mutex_t *apr_ldap_xref_lock = NULL;
 #endif
 static apr_ldap_rebind_entry_t *xref_head = NULL;
-#endif
 
 static int apr_ldap_rebind_set_callback(LDAP *ld);
 static apr_status_t apr_ldap_rebind_remove_helper(void *data);



Mime
View raw message