Browse code

fix compilation error on Tru64 (bb#829)

git-svn: trunk@3666

Tomasz Kojm authored on 2008/02/22 00:30:17
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Feb 21 15:29:48 CET 2008 (tk)
2
+---------------------------------
3
+  * clamd/server-th.c: fix compilation error on Tru64 (bb#829)
4
+
1 5
 Thu Feb 21 15:22:04 CET 2008 (tk)
2 6
 ---------------------------------
3 7
   * sigtool/sigtool.c: fix arg handling in vbadump() (bb#857)
... ...
@@ -191,7 +191,7 @@ static struct cl_engine *reload_db(struct cl_engine *engine, unsigned int dbopti
191 191
 {
192 192
 	const char *dbdir;
193 193
 	int retval;
194
-	unsigned int sigs = 0, try = 1;
194
+	unsigned int sigs = 0, attempt = 1;
195 195
 
196 196
     *ret = 0;
197 197
     if(do_check) {
... ...
@@ -237,8 +237,8 @@ static struct cl_engine *reload_db(struct cl_engine *engine, unsigned int dbopti
237 237
     }
238 238
 
239 239
     while((retval = cl_load(dbdir, &engine, &sigs, dboptions)) == CL_ELOCKDB) {
240
-	logg("!reload db failed: %s (try %u)\n", cl_strerror(retval), try);
241
-	if(++try > 3)
240
+	logg("!reload db failed: %s (attempt %u/3)\n", cl_strerror(retval), attempt);
241
+	if(++attempt > 3)
242 242
 	    break;
243 243
     }
244 244