Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4164b7
)
Use new FNONE value when setting/comparing enum logcode vars.
author
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 07:48:35 +0000
(07:48 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 07:48:35 +0000
(07:48 +0000)
hlink.c
patch
|
blob
|
blame
|
history
diff --git
a/hlink.c
b/hlink.c
index
814e4a4
..
77d0dc0
100644
(file)
--- a/
hlink.c
+++ b/
hlink.c
@@
-216,8
+216,10
@@
int hard_link_check(struct file_struct *file, int ndx, char *fname,
continue;
statret = 1;
st = &st3;
continue;
statret = 1;
st = &st3;
- if (verbose < 2 || !stdout_format_has_i)
- itemizing = code = 0;
+ if (verbose < 2 || !stdout_format_has_i) {
+ itemizing = 0;
+ code = FNONE;
+ }
break;
}
if (!unchanged_file(cmpbuf, file, &st3))
break;
}
if (!unchanged_file(cmpbuf, file, &st3))
@@
-266,7
+268,7
@@
int hard_link_one(struct file_struct *file, int ndx, char *fname,
ITEM_LOCAL_CHANGE | ITEM_XNAME_FOLLOWS, 0,
terse ? "" : toname);
}
ITEM_LOCAL_CHANGE | ITEM_XNAME_FOLLOWS, 0,
terse ? "" : toname);
}
- if (code && verbose && !terse)
+ if (code
!= FNONE
&& verbose && !terse)
rprintf(code, "%s => %s\n", fname, toname);
return 0;
}
rprintf(code, "%s => %s\n", fname, toname);
return 0;
}