diff options
author | Ryan Bloom <rbb@apache.org> | 2000-04-03 19:45:36 +0000 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-04-03 19:45:36 +0000 |
commit | b8d958df1b4f5c11d94dd73c9c80ef757da128db (patch) | |
tree | f9f6fabaabe2287e4b70fe884966bc4edc0e5278 /mmap | |
parent | 3fd3a15f23dbb016edc11380527039b785deb4f4 (diff) | |
download | apr-b8d958df1b4f5c11d94dd73c9c80ef757da128db.tar.gz |
Finish the APR naming cleanup. This removes the struct's from
apr_variable declarations. This works on Unix, but a test compile
on other platforms would be a good idea.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59773 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap')
-rw-r--r-- | mmap/beos/mmap.c | 8 | ||||
-rw-r--r-- | mmap/unix/mmap.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/mmap/beos/mmap.c b/mmap/beos/mmap.c index 567be9e2c..21ea428c8 100644 --- a/mmap/beos/mmap.c +++ b/mmap/beos/mmap.c @@ -56,7 +56,7 @@ ap_status_t mmap_cleanup(void *themmap) { - struct ap_mmap_t *mm = themmap; + ap_mmap_t *mm = themmap; int rv; rv = delete_area(mm->area); @@ -69,7 +69,7 @@ ap_status_t mmap_cleanup(void *themmap) return errno; } -ap_status_t ap_mmap_create(struct ap_mmap_t **new, ap_file_t *file, ap_off_t offset, ap_size_t size, +ap_status_t ap_mmap_create(ap_mmap_t **new, ap_file_t *file, ap_off_t offset, ap_size_t size, ap_context_t *cont) { void *mm; @@ -79,7 +79,7 @@ ap_status_t ap_mmap_create(struct ap_mmap_t **new, ap_file_t *file, ap_off_t off if (file == NULL || file->buffered || file->filedes == -1) return APR_EBADF; - (*new) = (struct ap_mmap_t *)ap_palloc(cont, sizeof(struct ap_mmap_t)); + (*new) = (ap_mmap_t *)ap_palloc(cont, sizeof(ap_mmap_t)); pages = ((size -1) / B_PAGE_SIZE) + 1; @@ -108,7 +108,7 @@ ap_status_t ap_mmap_create(struct ap_mmap_t **new, ap_file_t *file, ap_off_t off return APR_SUCCESS; } -ap_status_t ap_mmap_delete(struct ap_mmap_t *mmap) +ap_status_t ap_mmap_delete(ap_mmap_t *mmap) { ap_status_t rv; if (mmap->area == -1) diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c index 3cfcda7b3..8ac7abdc0 100644 --- a/mmap/unix/mmap.c +++ b/mmap/unix/mmap.c @@ -64,7 +64,7 @@ ap_status_t mmap_cleanup(void *themmap) { - struct ap_mmap_t *mm = themmap; + ap_mmap_t *mm = themmap; int rv; rv = munmap(mm->mm, mm->size); @@ -93,7 +93,7 @@ ap_status_t ap_mmap_create(ap_mmap_t **new, ap_file_t *file, ap_off_t offset, if (file == NULL || file->buffered || file->filedes == -1) return APR_EBADF; - (*new) = (struct ap_mmap_t *)ap_palloc(cont, sizeof(struct ap_mmap_t)); + (*new) = (ap_mmap_t *)ap_palloc(cont, sizeof(ap_mmap_t)); ap_seek(file, APR_SET, &offset); mm = mmap(NULL, size, PROT_READ, MAP_SHARED, file->filedes ,0); @@ -117,7 +117,7 @@ ap_status_t ap_mmap_create(ap_mmap_t **new, ap_file_t *file, ap_off_t offset, * Remove a mmap'ed. * arg 1) The mmap'ed file. */ -ap_status_t ap_mmap_delete(struct ap_mmap_t *mmap) +ap_status_t ap_mmap_delete(ap_mmap_t *mmap) { ap_status_t rv; |