diff options
author | Ivan Zhakov <ivan@apache.org> | 2022-11-20 07:14:38 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2022-11-20 07:14:38 +0000 |
commit | 4f9b76b6f2acc4030ce9ef164322514c5d0e761b (patch) | |
tree | 9b993b3753affcbf164056826f9d568d8760b3a1 /file_io/os2/buffer.c | |
parent | 961caf5f46055483fa72ab02f5e8baa16c209e2f (diff) | |
download | apr-4f9b76b6f2acc4030ce9ef164322514c5d0e761b.tar.gz apr-4f9b76b6f2acc4030ce9ef164322514c5d0e761b.zip |
Remove trailing whitespaces in *.c.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2/buffer.c')
-rw-r--r-- | file_io/os2/buffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/file_io/os2/buffer.c b/file_io/os2/buffer.c index 8edc60618..6d90553c3 100644 --- a/file_io/os2/buffer.c +++ b/file_io/os2/buffer.c @@ -17,7 +17,7 @@ #include "apr_arch_file_io.h" #include "apr_thread_mutex.h" -APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, +APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, char * buffer, apr_size_t bufsize) { @@ -27,7 +27,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, if (do_locking) { apr_thread_mutex_lock(file->mutex); } - + if (file->buffered) { /* Flush the existing buffer */ rv = apr_file_flush(file); @@ -39,7 +39,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, return rv; } } - + file->buffer = buffer; file->bufsize = bufsize; file->bufpos = 0; @@ -51,11 +51,11 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, rv = apr_thread_mutex_create(&file->mutex, 0, file->pool); } - /* Setting the buffer size to zero is equivalent to turning - * buffering off. + /* Setting the buffer size to zero is equivalent to turning + * buffering off. */ file->buffered = file->bufsize > 0; - + if (do_locking) { apr_thread_mutex_unlock(file->mutex); } |