Fix a FreeBSD specific warning on FreeBSD system after 460001
[EMAIL PROTECTED]> FreeBSD_version
Compilation release date: 600105
Execution environment release date: 600105
600105 IS NOT < 460001
network_io/unix/sendrecv.c: In function `apr_socket_sendfile':
network_io/unix/sendrecv.c:412: warning: unused variable `i'
svn diff
Index: network_io/unix/sendrecv.c
===================================================================
--- network_io/unix/sendrecv.c (revision 411403)
+++ network_io/unix/sendrecv.c (working copy)
@@ -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;
--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."