blob: 33d4c77b6889ec6f1ea69371d82090c5c92a722c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
--- libv3d/disk.cpp.orig 2007-11-16 12:27:26.000000000 +0100
+++ libv3d/disk.cpp 2007-11-16 12:30:59.000000000 +0100
@@ -120,12 +120,7 @@
if(path == NULL)
return(0);
- // Dan S: typecast is due to const.
-#if defined(__cplusplus) || defined(c_plusplus)
- while(ISBLANK(reinterpret_cast<char>(*path)))
-#else
while(ISBLANK(*path))
-#endif
path++;
return((*path) == DIR_DELIMINATOR);
@@ -440,7 +435,7 @@
/* Get enviroment value of HOME. */
strptr = getenv("HOME");
if(strptr == NULL)
- strptr = "/";
+ strptr = (char *)"/";
/* Copy input path to return path. */
strncpy(rtn_path, path, PATH_MAX);
@@ -1006,7 +1001,7 @@
(child == NULL) ||
(parent == child)
)
- return("/");
+ return((char *)"/");
/* If child is absolute, copy child and return. */
if((*child) == DIR_DELIMINATOR)
@@ -1245,7 +1240,7 @@
if(path == NULL)
- return("/");
+ return((char *)"/");
i = 0;
strptr1 = path;
|