diff options
author | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-11 16:32:10 +0000 |
---|---|---|
committer | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-11 16:32:10 +0000 |
commit | a52bc82687f7799a9b2e48b37e98b84435cb7216 (patch) | |
tree | d12005439295080a93c10e9c5e2e1fcb22c01e17 | |
parent | 3457503720dfe07aa763bbb487273e2847bf539a (diff) | |
download | libapr-a52bc82687f7799a9b2e48b37e98b84435cb7216.tar.gz |
Don't mix tabs and spaces in the same code segment.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62501 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | file_io/unix/readwrite.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/file_io/unix/readwrite.c b/file_io/unix/readwrite.c index 21148f0fd..353f340df 100644 --- a/file_io/unix/readwrite.c +++ b/file_io/unix/readwrite.c @@ -109,7 +109,7 @@ APR_DECLARE(apr_status_t) apr_file_read(apr_file_t *thefile, void *buf, apr_size if (*nbytes <= 0) { *nbytes = 0; - return APR_SUCCESS; + return APR_SUCCESS; } if (thefile->buffered) { @@ -128,7 +128,7 @@ APR_DECLARE(apr_status_t) apr_file_read(apr_file_t *thefile, void *buf, apr_size thefile->dataRead = 0; } - rv = 0; + rv = 0; if (thefile->ungetchar != -1) { *pos = (char)thefile->ungetchar; ++pos; @@ -177,8 +177,8 @@ APR_DECLARE(apr_status_t) apr_file_read(apr_file_t *thefile, void *buf, apr_size (*nbytes)--; thefile->ungetchar = -1; if (*nbytes == 0) { - *nbytes = bytes_read; - return APR_SUCCESS; + *nbytes = bytes_read; + return APR_SUCCESS; } } @@ -237,7 +237,7 @@ APR_DECLARE(apr_status_t) apr_file_write(apr_file_t *thefile, const void *buf, a thefile->direction = 1; } - rv = 0; + rv = 0; while (rv == 0 && size > 0) { if (thefile->bufpos == APR_FILE_BUFSIZE) /* write buffer is full*/ apr_file_flush(thefile); @@ -271,7 +271,7 @@ APR_DECLARE(apr_status_t) apr_file_write(apr_file_t *thefile, const void *buf, a else { do { rv = write(thefile->filedes, buf, *nbytes); - } while (rv == (apr_size_t)-1 && errno == EINTR); + } while (rv == (apr_size_t)-1 && errno == EINTR); } } #endif |