From fae5bb3183eb08b7f4f3ecf3e5cf23c87e372b92 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 23 Jan 2002 07:42:30 +0000 Subject: [PATCH] Doc. do_hard_links() actually only looks at the global hardlink table, so it can be a (void) fn. (Another gcc warning...) --- hlink.c | 9 +++++++-- receiver.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hlink.c b/hlink.c index 45366366..a79d15ad 100644 --- a/hlink.c +++ b/hlink.c @@ -152,8 +152,13 @@ static void hard_link_one(int i) } #endif -/* create any hard links in the flist */ -void do_hard_links(struct file_list *flist) + + +/** + * Create any hard links in the global hlink_list. They were put + * there by running init_hard_links on the filelist. + **/ +void do_hard_links(void) { #if SUPPORT_HARD_LINKS int i; diff --git a/receiver.c b/receiver.c index 7628b10e..5776ff28 100644 --- a/receiver.c +++ b/receiver.c @@ -489,7 +489,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) } if (preserve_hard_links) - do_hard_links(flist); + do_hard_links(); /* now we need to fix any directory permissions that were modified during the transfer */ -- 2.34.1