summaryrefslogtreecommitdiff
blob: 2ac12d888149a1352258054a5bb83942f95ad309 (plain)
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
--- mozart-1.3.2.20060615.orig/platform/emulator/urlc.cc	2005-05-19 17:48:45.000000000 +0000
+++ mozart-1.3.2.20060615/platform/emulator/urlc.cc	2009-08-10 20:32:43.000000000 +0000
@@ -625,13 +625,13 @@
     }
     port = 21;
 
-    p_collon = strchr(line, ':');
-    p_at = strchr(line, '@');
+    p_collon = strchr(const_cast<char*>(line), ':');
+    p_at = strchr(const_cast<char*>(line), '@');
     if(NULL != p_at) // we have a pass
 	p_slash = strchr(p_at + 1, '/');
     else
-	p_slash = strchr(line, '/'); 
-    p_semi = strchr(line, ';'); // to avoid masking by pass
+	p_slash = strchr(const_cast<char*>(line), '/'); 
+    p_semi = strchr(const_cast<char*>(line), ';'); // to avoid masking by pass
     
     // sanity checks
     if((NULL != p_collon) && (0 == p_collon[1]))
@@ -1140,8 +1140,8 @@
 
     if((NULL == line) || (0 == *line)) // emtpy line?
 	return (URLC_EEMPTY);
-    p_collon = strchr(line, ':');
-    p_slash = strchr(line, '/');
+    p_collon = strchr(const_cast<char*>(line), ':');
+    p_slash = strchr(const_cast<char*>(line), '/');
     
     // sanity checks
     if((NULL != p_collon) && (0 == p_collon[1])) // nothing after :