Browse code

fix compilation error

git-svn: trunk@2996

Tomasz Kojm authored on 2007/03/30 00:07:19
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Mar 29 12:41:17 CEST 2007 (tk)
2
+----------------------------------
3
+  * clamscan: fix compilation error
4
+
1 5
 Thu Mar 29 11:05:56 BST 2007 (njh)
2 6
 ----------------------------------
3 7
   * clamav-milter.c:	Incorrectly formatted local IPs were being ignored
... ...
@@ -95,7 +95,6 @@ static struct option clamscan_longopt[] = {
95 95
 
96 96
     /* developers only */
97 97
     {"dev-ac-only", 0, 0, 0},
98
-    {"dev-ac-depth", 1, 0, 0},
99 98
 
100 99
     {0, 0, 0, 0}
101 100
 };
... ...
@@ -187,13 +187,9 @@ int scanmanager(const struct optstruct *opt)
187 187
     }
188 188
 #endif
189 189
 
190
-    if(opt_check(opt, "dev-ac-only")) {
190
+    if(opt_check(opt, "dev-ac-only"))
191 191
 	dboptions |= CL_DB_ACONLY;
192 192
 
193
-	if(opt_check(opt, "dev-ac-depth"))
194
-	    cli_ac_setdepth(atoi(opt_arg(opt, "dev-ac-depth")));
195
-    }
196
-
197 193
     if(opt_check(opt, "database")) {
198 194
 	if((ret = cl_load(opt_arg(opt, "database"), &engine, &info.sigs, dboptions))) {
199 195
 	    logg("!%s\n", cl_strerror(ret));