Optimized away a call to cmp_modtime() for a compare-dest file.
authorWayne Davison <wayned@samba.org>
Tue, 29 Jun 2004 16:22:54 +0000 (16:22 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 29 Jun 2004 16:22:54 +0000 (16:22 +0000)
generator.c

index fa2d9ea..84958b8 100644 (file)
@@ -482,7 +482,8 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out)
                return;
        }
 
-       if (update_only && cmp_modtime(st.st_mtime,file->modtime)>0 && fnamecmp == fname) {
+       if (update_only && fnamecmp == fname
+           && cmp_modtime(st.st_mtime, file->modtime) > 0) {
                if (verbose > 1)
                        rprintf(FINFO,"%s is newer\n",fname);
                return;