diff options
author | Graham Leggett <minfrin@apache.org> | 2010-03-02 01:27:42 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2010-03-02 01:27:42 +0000 |
commit | edcc309d0e36c8f557219bfbfffa75aadddbafa9 (patch) | |
tree | 8f92addda767a97c97017deedeab718056170dcd /shmem | |
parent | a6a059f1425795802aff4c9199d64ee647ee2d09 (diff) | |
download | apr-edcc309d0e36c8f557219bfbfffa75aadddbafa9.tar.gz |
Use the APR_FOPEN_* constants instead of the deprecated APR_* constants
within code outside the file_io code.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@917837 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/unix/shm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c index 42921955a..f1259e232 100644 --- a/shmem/unix/shm.c +++ b/shmem/unix/shm.c @@ -304,7 +304,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, /* FIXME: APR_OS_DEFAULT is too permissive, switch to 600 I think. */ status = apr_file_open(&file, filename, - APR_WRITE | APR_CREATE | APR_EXCL, + APR_FOPEN_WRITE | APR_FOPEN_CREATE | APR_FOPEN_EXCL, APR_OS_DEFAULT, pool); if (status != APR_SUCCESS) { return status; @@ -384,7 +384,7 @@ APR_DECLARE(apr_status_t) apr_shm_remove(const char *filename, return APR_SUCCESS; #elif APR_USE_SHMEM_SHMGET /* Presume that the file already exists; just open for writing */ - status = apr_file_open(&file, filename, APR_WRITE, + status = apr_file_open(&file, filename, APR_FOPEN_WRITE, APR_OS_DEFAULT, pool); if (status) { return status; @@ -527,7 +527,7 @@ APR_DECLARE(apr_status_t) apr_shm_attach(apr_shm_t **m, new_m = apr_palloc(pool, sizeof(apr_shm_t)); status = apr_file_open(&file, filename, - APR_READ, APR_OS_DEFAULT, pool); + APR_FOPEN_READ, APR_OS_DEFAULT, pool); if (status != APR_SUCCESS) { return status; } |