diff options
author | minfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-07 15:06:47 +0000 |
---|---|---|
committer | minfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-07 15:06:47 +0000 |
commit | de5e8118bbb4e513adc94b436f8c68bc9f3a8ae8 (patch) | |
tree | 813f0a218be7682a6fb2cc20e8f572bfbe28788b /test/sendfile.c | |
parent | 8377c3696eeacce4e50a77ee2a9a75bb9d6ebaea (diff) | |
download | libapr-de5e8118bbb4e513adc94b436f8c68bc9f3a8ae8.tar.gz |
Backport r917838.
Use the APR_FOPEN_* constants instead of the deprecated APR_* constants
within code inside the test suite.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@920011 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/sendfile.c')
-rw-r--r-- | test/sendfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sendfile.c b/test/sendfile.c index 488d26481..e60ec71b2 100644 --- a/test/sendfile.c +++ b/test/sendfile.c @@ -109,7 +109,7 @@ static void create_testfile(apr_pool_t *p, const char *fname) printf("Creating a test file...\n"); rv = apr_file_open(&f, fname, - APR_CREATE | APR_WRITE | APR_TRUNCATE | APR_BUFFERED, + APR_FOPEN_CREATE | APR_FOPEN_WRITE | APR_FOPEN_TRUNCATE | APR_FOPEN_BUFFERED, APR_UREAD | APR_UWRITE, p); if (rv) { fprintf(stderr, "apr_file_open()->%d/%s\n", @@ -188,7 +188,7 @@ static int client(client_socket_mode_t socket_mode, char *host) apr_setup(&p, &sock, &family); create_testfile(p, TESTFILE); - rv = apr_file_open(&f, TESTFILE, APR_READ, 0, p); + rv = apr_file_open(&f, TESTFILE, APR_FOPEN_READ, 0, p); if (rv != APR_SUCCESS) { fprintf(stderr, "apr_file_open()->%d/%s\n", rv, |