summaryrefslogtreecommitdiffstats
path: root/src/freshklam.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-25 15:34:56 +0200
committerMavridis Philippe <[email protected]>2021-01-25 15:34:56 +0200
commitc06676f232466dcc7917299b75f5296ff830b01c (patch)
treeaacf02557175b245b1b68bbc8accda67cda586b3 /src/freshklam.cpp
parent719d2f66dbdf7a70b084529acc888269a1743c1b (diff)
downloadklamav-c06676f232466dcc7917299b75f5296ff830b01c.tar.gz
klamav-c06676f232466dcc7917299b75f5296ff830b01c.zip
Fixed some TQString->const char * casts.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/freshklam.cpp')
-rw-r--r--src/freshklam.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freshklam.cpp b/src/freshklam.cpp
index 62e4791..18fc5cd 100644
--- a/src/freshklam.cpp
+++ b/src/freshklam.cpp
@@ -754,7 +754,7 @@ TQString Freshklam::getCurrentDBDir(){
if (dbdir != dir_combo->url()){
/* load all available databases from default directory */
- ret = cl_load((const char *)dir_combo->url(), engine, &no, CL_DB_STDOPT);
+ ret = cl_load(dir_combo->url().ascii(), engine, &no, CL_DB_STDOPT);
//ret = cl_loaddbdir((const char *)dir_combo->url(), &root, &no);
////kdDebug() << "ret " << ret << endl;
if (no == 0){
@@ -791,7 +791,7 @@ void Freshklam::createDBDir(){
if (!klamavqdir.exists() && !klamavqdir.mkdir(path))
ok = false;
else
- chmod((const char *)path,0700);
+ chmod(path.ascii(),0700);
}
if (ok){