]> granicus.if.org Git - apache/commitdiff
Silence compiler warnings.
authorRainer Jung <rjung@apache.org>
Mon, 4 Jul 2011 16:37:46 +0000 (16:37 +0000)
committerRainer Jung <rjung@apache.org>
Mon, 4 Jul 2011 16:37:46 +0000 (16:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1142733 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_socache_dc.c
modules/ldap/util_ldap.c

index 1c11d089fd7cc1e34c57faa02510943c2b110723..7021cbcce8b49e8cfb47bb516b2349fa5dabe785 100644 (file)
@@ -92,7 +92,7 @@ static void socache_dc_destroy(ap_socache_instance_t *ctx, server_rec *s)
 
 static apr_status_t socache_dc_store(ap_socache_instance_t *ctx, server_rec *s, 
                                      const unsigned char *id, unsigned int idlen,
-                                     time_t expiry,
+                                     apr_time_t expiry,
                                      unsigned char *der, unsigned int der_len,
                                      apr_pool_t *p)
 {
index 6b76a645760b727697d2a3ac99d82c19f5a8be12..9427b69a2885c29b519bf38fa104eb613dc61252 100644 (file)
@@ -2444,9 +2444,11 @@ static const char *util_ldap_set_chase_referrals(cmd_parms *cmd,
 static const char *util_ldap_set_debug_level(cmd_parms *cmd,
                                              void *config,
                                              const char *arg) { 
+#ifdef AP_LDAP_OPT_DEBUG
     util_ldap_state_t *st =
         (util_ldap_state_t *)ap_get_module_config(cmd->server->module_config,
                                                   &ldap_module);
+#endif
 
     const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
     if (err != NULL) {