You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2001/09/01 07:11:46 UTC
cvs commit: apr/file_io/win32 filepath.c
bjh 01/08/31 22:11:46
Modified: file_io/win32 filepath.c
Log:
Fix a few warnings.
- Several 'incompatible pointer type' warnings due to missing const's.
- Implicit declarations of strchr, strncmp & toupper.
Revision Changes Path
1.12 +6 -4 apr/file_io/win32/filepath.c
Index: filepath.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/filepath.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- filepath.c 2001/08/30 15:44:09 1.11
+++ filepath.c 2001/09/01 05:11:46 1.12
@@ -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_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 @@
{
#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');