apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r411637 - /apr/apr/trunk/network_io/unix/sendrecv.c
Date Mon, 05 Jun 2006 01:52:16 GMT
Author: rooneg
Date: Sun Jun  4 18:52:16 2006
New Revision: 411637

URL: http://svn.apache.org/viewvc?rev=411637&view=rev
Log:
Fix warning about unused variables on new versions of FreeBSD.

Submitted by: Philip M. Gollucci <pgollucci p6m7g8.com>

* network_io/unix/sendrecv.c
  (apr_socket_sendfile): Only declare i if we're on a suitable version of
   FreeBSD.

Modified:
    apr/apr/trunk/network_io/unix/sendrecv.c

Modified: apr/apr/trunk/network_io/unix/sendrecv.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sendrecv.c?rev=411637&r1=411636&r2=411637&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sendrecv.c (original)
+++ apr/apr/trunk/network_io/unix/sendrecv.c Sun Jun  4 18:52:16 2006
@@ -409,7 +409,10 @@
                                  apr_size_t * len, apr_int32_t flags)
 {
     off_t nbytes = 0;
-    int rv, i;
+    int rv;
+#if defined(__FreeBSD_version) && __FreeBSD_version < 460001
+    int i;
+#endif
     struct sf_hdtr headerstruct;
     apr_size_t bytes_to_send = *len;
 



Mime
View raw message