mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-05 23:17:45 -05:00
Doc.
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:
9
hlink.c
9
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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user