summaryrefslogtreecommitdiff
path: root/devel/gcvs/patches/patch-af
blob: 8f356ead7f79084efe82089dc6434d4d4d1c1132 (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
32
33
34
35
36
37
38
39
40
$NetBSD: patch-af,v 1.2 2020/04/17 00:21:56 joerg Exp $

--- common/UCvsFiles.cpp.orig	2002-08-13 11:46:40.000000000 +0000
+++ common/UCvsFiles.cpp
@@ -1214,7 +1214,7 @@ int UCvsFiles::OnCmdUpone(void)
 {
 	UStr uppath, filename;
 	SplitPath(m_path, uppath, filename);
-	ResetView(uppath, true);
+	ResetView((const char *)uppath, true);
 	return 0;
 }
 
@@ -1895,7 +1895,7 @@ void UCvsFiles::EditSel(EntnodeData *dat
 	fullpath << (*data)[EntnodeData::kName];
 	if(data->GetType() == ENT_SUBDIR)
 	{
-		ResetView(fullpath, true);
+		ResetView((const char *)fullpath, true);
 	}
 	else
 	{
@@ -2017,7 +2017,7 @@ static int revcmp(const char *rev1, cons
 	char *tmp;
 	int v1, v2;
 
-	if((tmp = strchr(r1, '.')) != 0L)
+	if((tmp = strchr((char *)r1, '.')) != 0L)
 	{
 		tmp[0] = '\0';
 		q1 = tmp + 1;
@@ -2025,7 +2025,7 @@ static int revcmp(const char *rev1, cons
 
 	v1 = atoi(r1);
 
-	if((tmp = strchr(r2, '.')) != 0L)
+	if((tmp = strchr((char *)r2, '.')) != 0L)
 	{
 		tmp[0] = '\0';
 		q2 = tmp + 1;