do_hard_links() actually only looks at the global hardlink table, so
it can be a (void) fn.  (Another gcc warning...)
This commit is contained in:
Martin Pool
2002-01-23 07:42:30 +00:00
parent 6fe25398d6
commit fae5bb3183
2 changed files with 8 additions and 3 deletions

View File

@@ -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;

View File

@@ -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 */