Doc.
authorMartin Pool <mbp@samba.org>
Wed, 23 Jan 2002 07:42:30 +0000 (07:42 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 23 Jan 2002 07:42:30 +0000 (07:42 +0000)
do_hard_links() actually only looks at the global hardlink table, so
it can be a (void) fn.  (Another gcc warning...)

hlink.c
receiver.c

diff --git a/hlink.c b/hlink.c
index 4536636..a79d15a 100644 (file)
--- a/hlink.c
+++ b/hlink.c
@@ -152,8 +152,13 @@ static void hard_link_one(int i)
 }
 #endif
 
 }
 #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;
 {
 #if SUPPORT_HARD_LINKS
        int i;
index 7628b10..5776ff2 100644 (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)
        }
 
        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 */
 
        /* now we need to fix any directory permissions that were 
           modified during the transfer */