summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 8e40d8e..5e6b854 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1378,7 +1378,7 @@ struct cmSystemToolsGZStruct
int cmSystemToolsGZStruct::Open(void* call_data, const char *pathname, int oflags, mode_t mode)
{
- char *gzoflags;
+ const char *gzoflags;
int fd;
cmSystemToolsGZStruct* gzf = static_cast<cmSystemToolsGZStruct*>(call_data);
@@ -1449,10 +1449,10 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdSt
cmSystemToolsGZStruct gzs;
tartype_t gztype = {
- cmSystemToolsGZStruct::Open,
- cmSystemToolsGZStruct::Close,
- cmSystemToolsGZStruct::Read,
- cmSystemToolsGZStruct::Write,
+ (openfunc_t)cmSystemToolsGZStruct::Open,
+ (closefunc_t)cmSystemToolsGZStruct::Close,
+ (readfunc_t)cmSystemToolsGZStruct::Read,
+ (writefunc_t)cmSystemToolsGZStruct::Write,
&gzs
};