aboutsummaryrefslogtreecommitdiffstats
path: root/hlink.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-12-31 20:27:40 -0800
committerWayne Davison <wayned@samba.org>2007-12-31 20:40:51 -0800
commit5288be3af7c24814011130306725c24df792cc06 (patch)
tree09cd9f2ce35299bb7b12de23695f2ac6e9610ea7 /hlink.c
parent83235dbc546d74ee325bb09b602bd62313fea793 (diff)
downloadandroid_external_rsync-5288be3af7c24814011130306725c24df792cc06.tar.gz
android_external_rsync-5288be3af7c24814011130306725c24df792cc06.tar.bz2
android_external_rsync-5288be3af7c24814011130306725c24df792cc06.zip
Some minor tweaks:
- Improved some comments in hlink.c. - Changed "the" to "a" in rsyncd.conf.yo. - Improved the PATCH.name filtering loop in patch-update.
Diffstat (limited to 'hlink.c')
-rw-r--r--hlink.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hlink.c b/hlink.c
index dfd00681..87e4236b 100644
--- a/hlink.c
+++ b/hlink.c
@@ -143,7 +143,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count)
if (gnum != gnum_next)
break;
F_HL_PREV(file) = prev;
- /* The linked list must use raw ndx values. */
+ /* The linked list uses over-the-wire ndx values. */
if (unsort_ndx)
prev = F_NDX(file);
else
@@ -275,13 +275,13 @@ int hard_link_check(struct file_struct *file, int ndx, const char *fname,
if (!prev_name) {
struct file_struct *prev_file = flist->files[prev_ndx - flist->ndx_start];
- /* Is the previous link is not complete yet? */
+ /* Is the previous link not complete yet? */
if (!(prev_file->flags & FLAG_HLINK_DONE)) {
/* Is the previous link being transferred? */
if (prev_file->flags & FLAG_FILE_SENT) {
- /* Add ourselves to the list of files that will be
- * updated when the transfer completes, and mark
- * ourself as waiting for the transfer. */
+ /* Add ourselves to the list of files that will
+ * be updated when the transfer completes, and
+ * mark ourself as waiting for the transfer. */
F_HL_PREV(file) = F_HL_PREV(prev_file);
F_HL_PREV(prev_file) = ndx;
file->flags |= FLAG_FILE_SENT;