diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-01 05:11:46 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-01 05:11:46 +0000 |
commit | a0df59023ba79a09480d48702aff44adc33c371d (patch) | |
tree | 31150be2ece45c90c233c45fc3a37fd10423fe2e /file_io | |
parent | 99e26196b6d56404ce4515d4e1b282c6a42ac4fd (diff) | |
download | libapr-a0df59023ba79a09480d48702aff44adc33c371d.tar.gz |
Fix a few warnings.
- Several 'incompatible pointer type' warnings due to missing const's.
- Implicit declarations of strchr, strncmp & toupper.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62272 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/win32/filepath.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/file_io/win32/filepath.c b/file_io/win32/filepath.c index 3b79a5584..cef981ff8 100644 --- a/file_io/win32/filepath.c +++ b/file_io/win32/filepath.c @@ -55,6 +55,8 @@ #include "apr.h" #include "fileio.h" #include "apr_strings.h" +#include <string.h> +#include <ctype.h> #ifdef NETWARE #include <unistd.h> @@ -331,8 +333,8 @@ APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath, apr_pool_t *p) { char path[APR_PATH_MAX]; /* isn't null term */ - char *baseroot = NULL; - char *addroot; + const char *baseroot = NULL; + const char *addroot; apr_size_t rootlen; /* the length of the root portion of path, d:/ is 3 */ apr_size_t baselen; /* the length of basepath (excluding baseroot) */ apr_size_t keptlen; /* the length of the retained basepath (incl root) */ @@ -716,8 +718,8 @@ APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath, { #ifndef NETWARE if (fixunc) { - char *testpath = path; - char *testroot; + const char *testpath = path; + const char *testroot; apr_status_t testtype; apr_size_t i = (addpath[segend] != '\0'); |