summaryrefslogtreecommitdiff
path: root/mmap
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-04-03 19:45:36 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-04-03 19:45:36 +0000
commitc22cf7f831deced25759629459531df54eeeb6c0 (patch)
treef9f6fabaabe2287e4b70fe884966bc4edc0e5278 /mmap
parentcda27b2fd17c50d05e3f589fc31db462bc9d0b8f (diff)
downloadlibapr-c22cf7f831deced25759629459531df54eeeb6c0.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: http://svn.apache.org/repos/asf/apr/apr/trunk@59773 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap')
-rw-r--r--mmap/beos/mmap.c8
-rw-r--r--mmap/unix/mmap.c6
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;