You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2007/05/12 14:40:14 UTC
svn commit: r537403 - /apr/apr/branches/1.2.x/file_io/unix/readwrite.c
Author: bojan
Date: Sat May 12 05:40:14 2007
New Revision: 537403
URL: http://svn.apache.org/viewvc?view=rev&rev=537403
Log:
Backport r537402 from the trunk.
Avoid compiler warning (rv only used if HAVE_WRITEV).
Modified:
apr/apr/branches/1.2.x/file_io/unix/readwrite.c
Modified: apr/apr/branches/1.2.x/file_io/unix/readwrite.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/file_io/unix/readwrite.c?view=diff&rev=537403&r1=537402&r2=537403
==============================================================================
--- apr/apr/branches/1.2.x/file_io/unix/readwrite.c (original)
+++ apr/apr/branches/1.2.x/file_io/unix/readwrite.c Sat May 12 05:40:14 2007
@@ -226,8 +226,8 @@
APR_DECLARE(apr_status_t) apr_file_writev(apr_file_t *thefile, const struct iovec *vec,
apr_size_t nvec, apr_size_t *nbytes)
{
- apr_status_t rv;
#ifdef HAVE_WRITEV
+ apr_status_t rv;
int bytes;
file_lock(thefile);