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 /mmap/unix | |
parent | 961caf5f46055483fa72ab02f5e8baa16c209e2f (diff) | |
download | apr-4f9b76b6f2acc4030ce9ef164322514c5d0e761b.tar.gz |
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 'mmap/unix')
-rw-r--r-- | mmap/unix/common.c | 4 | ||||
-rw-r--r-- | mmap/unix/mmap.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/mmap/unix/common.c b/mmap/unix/common.c index 1172f3c89..dcd71c691 100644 --- a/mmap/unix/common.c +++ b/mmap/unix/common.c @@ -17,7 +17,7 @@ /* common .c * This file has any function that is truly common and platform * neutral. Or at least that's the theory. - * + * * The header files are a problem so there are a few #ifdef's to take * care of those. * @@ -35,7 +35,7 @@ APR_DECLARE(apr_status_t) apr_mmap_offset(void **addr, apr_mmap_t *mmap, { if (offset < 0 || (apr_size_t)offset > mmap->size) return APR_EINVAL; - + (*addr) = (char *) mmap->mm + offset; return APR_SUCCESS; } diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c index cc0c838dc..66955bb97 100644 --- a/mmap/unix/mmap.c +++ b/mmap/unix/mmap.c @@ -76,9 +76,9 @@ static apr_status_t mmap_cleanup(void *themmap) return errno; } -APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, - apr_file_t *file, apr_off_t offset, - apr_size_t size, apr_int32_t flag, +APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, + apr_file_t *file, apr_off_t offset, + apr_size_t size, apr_int32_t flag, apr_pool_t *cont) { void *mm; @@ -101,11 +101,11 @@ APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, if (size == 0) return APR_EINVAL; - + if (file == NULL || file->filedes == -1 || file->buffered) return APR_EBADF; (*new) = (apr_mmap_t *)apr_pcalloc(cont, sizeof(apr_mmap_t)); - + #ifdef BEOS /* XXX: mmap shouldn't really change the seek offset */ apr_file_seek(file, APR_SET, &offset); @@ -126,7 +126,7 @@ APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, if (aid >= B_NO_ERROR) read(file->filedes, mm, size); - + (*new)->area = aid; #else |