summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-25 15:07:25 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-25 15:07:25 +0200
commit719d2f66dbdf7a70b084529acc888269a1743c1b (patch)
tree5944c29eb5e2a6f5411190843ceb26b944b9fa0b
parent9fa764558c4eae298c8a60f082957bc568ef824b (diff)
downloadklamav-719d2f66dbdf7a70b084529acc888269a1743c1b.tar.gz
klamav-719d2f66dbdf7a70b084529acc888269a1743c1b.zip
Removed more #ifdef clauses related to legacy ClamAV version support.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r--src/dbviewer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/dbviewer.cpp b/src/dbviewer.cpp
index d9aa50a..c61f2d4 100644
--- a/src/dbviewer.cpp
+++ b/src/dbviewer.cpp
@@ -794,21 +794,15 @@ unsigned int KlamDB::getSigNos()
lastDownloadPaths = config->readListEntry("lastDownloadPaths");
dbdir = lastDownloadPaths.first();
-#ifdef SUPPORT_CLAMAV_V095
if((engine = cl_engine_new()) == NULL) {
printf("Database initialization error: %s\n", cl_strerror(ret));;
cl_engine_free(engine);
return 0;
}
-#endif
-#ifdef SUPPORT_CLAMAV_V095
ret = cl_load((const char *)dbdir, engine, &no, CL_DB_STDOPT);
cl_engine_free(engine);
-#else
- ret = cl_load((const char *)dbdir, &engine, &no, CL_DB_STDOPT);
- cl_free(engine);
-#endif
+
kdDebug() << "no of sigs" << no << endl;
return no;