From: Wayne Davison Date: Tue, 29 Jun 2004 16:22:54 +0000 (+0000) Subject: Optimized away a call to cmp_modtime() for a compare-dest file. X-Git-Tag: v2.6.3pre1~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a4375f78be4a784abc0c95fc8c99f979decc3f;p=thirdparty%2Frsync.git Optimized away a call to cmp_modtime() for a compare-dest file. --- diff --git a/generator.c b/generator.c index fa2d9eab..84958b82 100644 --- a/generator.c +++ b/generator.c @@ -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;