brianp 2003/06/25 00:02:48
Modified: file_io/win32 filepath.c
Log:
Change a declaration that wouldn't compile under Borland C++
Submitted by: Saxon Druce <[EMAIL PROTECTED]>
Revision Changes Path
1.42 +4 -1 apr/file_io/win32/filepath.c
Index: filepath.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/filepath.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- filepath.c 16 Feb 2003 21:59:08 -0000 1.41
+++ filepath.c 25 Jun 2003 07:02:48 -0000 1.42
@@ -156,9 +156,12 @@
#else /* ndef(NETWARE) */
- char seperator[2] = { (flags & APR_FILEPATH_NATIVE) ? '\\' : '/', 0};
+ char seperator[2];
const char *delim1;
const char *delim2;
+
+ seperator[0] = (flags & APR_FILEPATH_NATIVE) ? '\\' : '/';
+ seperator[1] = 0;
if (testpath[0] == '/' || testpath[0] == '\\') {
if (testpath[1] == '/' || testpath[1] == '\\') {