Browse code

c4w: fix some build errors

Török Edvin authored on 2011/02/10 21:13:18
Showing 1 changed files
... ...
@@ -921,7 +921,7 @@ int CLAMAPI Scan_ScanObjectByHandle(CClamAVScanner *pScanner, HANDLE object, int
921 921
 
922 922
     perf = GetTickCount() - perf;
923 923
     close(fd);
924
-    logg("*Scan_ScanObjectByHandle (instance %p): cl_scandesc returned %d in %u ms (%d ms own, %d ms copy)\n", inst, res, perf, perf - sctx.cb_time - sctx.copy_times, sctx.copy_times);
924
+    logg("*Scan_ScanObjectByHandle (instance %p): cl_scandesc returned %d in %u ms (%d ms own, %d ms copy)\n", inst, res, perf, perf - sctx.cb_times - sctx.copy_times, sctx.copy_times);
925 925
 
926 926
     if(lock_instances())
927 927
 	FAIL(CL_ELOCK, "failed to lock instances for instance %p", pScanner);
... ...
@@ -1011,9 +1011,9 @@ cl_error_t prescan_cb(int fd, void *context) {
1011 1011
     si.pInnerObjectPath = NULL;
1012 1012
 
1013 1013
     if(si.scanPhase == SCAN_PHASE_PRESCAN) {
1014
-	perf2 = GetTickCount();
1015 1014
 	long fpos;
1016 1015
 	int rsz;
1016
+	perf2 = GetTickCount();
1017 1017
 	while(1) {
1018 1018
 	    static int tmpn;
1019 1019
 	    snprintf(tmpf, sizeof(tmpf), "%s\\%08x.tmp", tmpdir, ++tmpn);