]> granicus.if.org Git - apache/commitdiff
Remove the conditional for APR >= 1.3.
authorTakashi Sato <takashi@apache.org>
Tue, 26 May 2009 15:57:51 +0000 (15:57 +0000)
committerTakashi Sato <takashi@apache.org>
Tue, 26 May 2009 15:57:51 +0000 (15:57 +0000)
httpd 2.3 has needed APR 1.3 or later since r582069.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@778778 13f79535-47bb-0310-9956-ffa450edef68

support/logresolve.c

index 4ce48c8973013a879b29c37e302438b698c07fe8..0e6f3ac4a65f49e44046032a11dac263676c93d4 100644 (file)
@@ -138,10 +138,8 @@ int main(int argc, const char * const argv[])
     apr_status_t status;
     const char * arg;
     char * stats = NULL;
-#if APR_MAJOR_VERSION > 1 || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 3)
     char * inbuffer;
     char * outbuffer;
-#endif
     char line[LINE_BUF_SIZE];
     int doublelookups = 0;
 
@@ -190,7 +188,6 @@ int main(int argc, const char * const argv[])
     apr_file_open_stdout(&outfile, pool);
     apr_file_open_stdin(&infile, pool);
 
-#if APR_MAJOR_VERSION > 1 || (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION >= 3)
     /* Allocate two new 10k file buffers */
     if ((outbuffer = apr_palloc(pool, WRITE_BUF_SIZE)) == NULL ||
         (inbuffer = apr_palloc(pool, READ_BUF_SIZE)) == NULL) {
@@ -200,7 +197,6 @@ int main(int argc, const char * const argv[])
     /* Set the buffers */
     apr_file_buffer_set(infile, inbuffer, READ_BUF_SIZE);
     apr_file_buffer_set(outfile, outbuffer, WRITE_BUF_SIZE);
-#endif
 
     cache = apr_hash_make(pool);
     if(apr_pool_create(&pline, pool) != APR_SUCCESS){