summaryrefslogtreecommitdiff
path: root/devel/tvision/patches/patch-ad
blob: 1e27cfffe66a73c0244e15a87b58dca643fe9393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ad,v 1.1 2008/01/24 19:27:10 rillig Exp $

sunpro says:
cannot assign "const char *" to "char *".

--- lib/system.cc.orig	2008-01-24 15:17:51.000000000 +0100
+++ lib/system.cc	2008-01-24 15:51:10.273636000 +0100
@@ -2335,7 +2335,7 @@ filelength(istream &s)
 
 void expandPath(const char *path, char *dir, char *file)
 {
-	char *tag = strrchr(path, '/');
+	const char *tag = strrchr(path, '/');
 
 	/* the path is in the form /dir1/dir2/file ? */