pkgsrc/devel/gcvs/patches/patch-af
2020-04-17 00:21:56 +00:00

40 lines
1,003 B
Text

$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;