Browse code

improve backward compatibility (bb#393)

git-svn: trunk@2923

Tomasz Kojm authored on 2007/03/09 23:28:37
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Mar  9 13:34:52 CET 2007 (tk)
2
+---------------------------------
3
+  * libclamav: improve backward compatibility (bb#393)
4
+
1 5
 Fri Mar  9 02:34:11 CET 2007 (tk)
2 6
 ---------------------------------
3 7
   * libclamav/matcher.c: add support for floating offsets, requested by
... ...
@@ -106,6 +106,7 @@ extern "C"
106 106
 #define CL_OLE2		CL_SCAN_OLE2
107 107
 #define CL_ENCRYPTED    CL_SCAN_BLOCKENCRYPTED
108 108
 #define cl_node		cl_engine
109
+#define cl_perror	cl_strerror
109 110
 
110 111
 /* internal structures */
111 112
 struct cli_bm_patt {
... ...
@@ -1238,7 +1238,7 @@ static int cli_load(const char *filename, struct cl_engine **engine, unsigned in
1238 1238
 }
1239 1239
 
1240 1240
 int cl_loaddb(const char *filename, struct cl_engine **engine, unsigned int *signo) {
1241
-    return cli_load(filename, engine, signo, 0);
1241
+    return cli_load(filename, engine, signo, CL_DB_STDOPT);
1242 1242
 }
1243 1243
 
1244 1244
 static int cli_loaddbdir_l(const char *dirname, struct cl_engine **engine, unsigned int *signo, unsigned int options)
... ...
@@ -1358,7 +1358,7 @@ static int cli_loaddbdir(const char *dirname, struct cl_engine **engine, unsigne
1358 1358
 }
1359 1359
 
1360 1360
 int cl_loaddbdir(const char *dirname, struct cl_engine **engine, unsigned int *signo) {
1361
-    return cli_loaddbdir(dirname, engine, signo, 0);
1361
+    return cli_loaddbdir(dirname, engine, signo, CL_DB_STDOPT);
1362 1362
 }
1363 1363
 
1364 1364
 int cl_load(const char *path, struct cl_engine **engine, unsigned int *signo, unsigned int options)