httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1220826 - /httpd/httpd/trunk/server/mpm/event/event.c
Date Mon, 19 Dec 2011 16:20:26 GMT
Author: minfrin
Date: Mon Dec 19 16:20:26 2011
New Revision: 1220826

URL: http://svn.apache.org/viewvc?rev=1220826&view=rev
Log:
Fix warning: variable 'rv' set but not used.

Modified:
    httpd/httpd/trunk/server/mpm/event/event.c

Modified: httpd/httpd/trunk/server/mpm/event/event.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1220826&r1=1220825&r2=1220826&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/event/event.c (original)
+++ httpd/httpd/trunk/server/mpm/event/event.c Mon Dec 19 16:20:26 2011
@@ -810,7 +810,6 @@ static void process_pollop(pollset_op_t 
  */
 static int start_lingering_close(event_conn_state_t *cs, ap_equeue_t *eq)
 {
-    apr_status_t rv;
 
     cs->c->sbh = NULL;  /* prevent scoreboard updates from the listener 
                          * worker will loop around soon and set SERVER_READY
@@ -833,8 +832,15 @@ static int start_lingering_close(event_c
             v = &localv;
         }
 
-        rv = apr_socket_timeout_set(csd, 0);
-        AP_DEBUG_ASSERT(rv == APR_SUCCESS);
+#ifdef AP_DEBUG
+        {
+            apr_status_t rv;
+            rv = apr_socket_timeout_set(csd, 0);
+            AP_DEBUG_ASSERT(rv == APR_SUCCESS);
+        }
+#else
+        apr_socket_timeout_set(csd, 0);
+#endif
         /*
          * If some module requested a shortened waiting period, only wait for
          * 2s (SECONDS_TO_LINGER). This is useful for mitigating certain



Mime
View raw message