You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2004/08/19 20:06:47 UTC

cvs commit: httpd-2.0/modules/ldap util_ldap.c

bnicholes    2004/08/19 11:06:47

  Modified:    modules/ldap util_ldap.c
  Log:
  Clean up some compiler warnings
  
  Revision  Changes    Path
  1.8       +3 -10     httpd-2.0/modules/ldap/util_ldap.c
  
  Index: util_ldap.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ldap/util_ldap.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- util_ldap.c	18 Aug 2004 22:18:39 -0000	1.7
  +++ util_ldap.c	19 Aug 2004 18:06:47 -0000	1.8
  @@ -239,9 +239,6 @@
       int failures = 0;
       int version  = LDAP_VERSION3;
   
  -    util_ldap_state_t *st = (util_ldap_state_t *)ap_get_module_config(
  -                                r->server->module_config, &ldap_module);
  -
       /* If the connection is already bound, return
       */
       if (ldc->bound)
  @@ -255,12 +252,9 @@
       if (NULL == ldc->ldap)
       {
           apr_ldap_err_t *result = NULL;
  -        int rc = apr_ldap_init(r->pool,
  -                               &(ldc->ldap),
  -                               ldc->host,
  -                               ldc->port,
  -                               ldc->secure,
  -                               &(result));
  +
  +        apr_ldap_init(r->pool, &(ldc->ldap), ldc->host, ldc->port,
  +                      ldc->secure, &(result));
   
           if (result != NULL) {
               ldc->reason = result->reason;
  @@ -1132,7 +1126,6 @@
   static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog, 
                                    apr_pool_t *ptemp, server_rec *s)
   {
  -    int rc = LDAP_SUCCESS;
       apr_status_t result;
       char buf[MAX_STRING_LEN];
       server_rec *s_vhost;