summaryrefslogtreecommitdiffstats
path: root/src/schedule.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-25 15:34:56 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-25 15:34:56 +0200
commitc06676f232466dcc7917299b75f5296ff830b01c (patch)
treeaacf02557175b245b1b68bbc8accda67cda586b3 /src/schedule.cpp
parent719d2f66dbdf7a70b084529acc888269a1743c1b (diff)
downloadklamav-c06676f232466dcc7917299b75f5296ff830b01c.tar.gz
klamav-c06676f232466dcc7917299b75f5296ff830b01c.zip
Fixed some TQString->const char * casts.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/schedule.cpp')
-rw-r--r--src/schedule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/schedule.cpp b/src/schedule.cpp
index 5beed95..580d16f 100644
--- a/src/schedule.cpp
+++ b/src/schedule.cpp
@@ -393,7 +393,7 @@ TQString Schedule::createScanScript()
ts << "fi" << "\n";
file.close();
- chmod((const char *)file.name(), S_IWUSR | S_IRUSR | S_IEXEC );
+ chmod(file.name().ascii(), S_IWUSR | S_IRUSR | S_IEXEC );
return file.name();
}else
return TQString("Error");
@@ -459,7 +459,7 @@ TQString Schedule::createStartupScript()
ts << "Terminal=0" << "\n";
file.close();
- chmod((const char *)file.name(), S_IWUSR | S_IRUSR | S_IEXEC );
+ chmod(file.name().ascii(), S_IWUSR | S_IRUSR | S_IEXEC );
return file.name();
}else
return TQString("Error");