You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2010/05/28 17:46:25 UTC

svn commit: r949209 - in /apr/apr/trunk: mmap/win32/mmap.c network_io/win32/sendrecv.c network_io/win32/sockets.c

Author: trawick
Date: Fri May 28 15:46:25 2010
New Revision: 949209

URL: http://svn.apache.org/viewvc?rev=949209&view=rev
Log:
axe unused variables

Modified:
    apr/apr/trunk/mmap/win32/mmap.c
    apr/apr/trunk/network_io/win32/sendrecv.c
    apr/apr/trunk/network_io/win32/sockets.c

Modified: apr/apr/trunk/mmap/win32/mmap.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/mmap/win32/mmap.c?rev=949209&r1=949208&r2=949209&view=diff
==============================================================================
--- apr/apr/trunk/mmap/win32/mmap.c (original)
+++ apr/apr/trunk/mmap/win32/mmap.c Fri May 28 15:46:25 2010
@@ -29,7 +29,6 @@ static apr_status_t mmap_cleanup(void *t
 {
     apr_mmap_t *mm = themmap;
     apr_mmap_t *next = APR_RING_NEXT(mm,link);
-    apr_status_t rv = 0;
 
     /* we no longer refer to the mmaped region */
     APR_RING_REMOVE(mm,link);

Modified: apr/apr/trunk/network_io/win32/sendrecv.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/win32/sendrecv.c?rev=949209&r1=949208&r2=949209&view=diff
==============================================================================
--- apr/apr/trunk/network_io/win32/sendrecv.c (original)
+++ apr/apr/trunk/network_io/win32/sendrecv.c Fri May 28 15:46:25 2010
@@ -266,7 +266,6 @@ APR_DECLARE(apr_status_t) apr_socket_sen
     DWORD dwFlags = 0;
     apr_size_t nbytes;
     TRANSMIT_FILE_BUFFERS tfb, *ptfb = NULL;
-    int ptr = 0;
     apr_size_t bytes_to_send;   /* Bytes to send out of the file (not including headers) */
     int disconnected = 0;
     int sendv_trailers = 0;

Modified: apr/apr/trunk/network_io/win32/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/win32/sockets.c?rev=949209&r1=949208&r2=949209&view=diff
==============================================================================
--- apr/apr/trunk/network_io/win32/sockets.c (original)
+++ apr/apr/trunk/network_io/win32/sockets.c Fri May 28 15:46:25 2010
@@ -81,7 +81,9 @@ APR_DECLARE(apr_status_t) apr_socket_cre
                                             int type, int protocol, 
                                             apr_pool_t *cont)
 {
+#if APR_HAVE_IPV6
     int downgrade = (family == AF_UNSPEC);
+#endif
 
     if (family == AF_UNSPEC) {
 #if APR_HAVE_IPV6