Made hard_link_check() compile when SUPPORT_HARD_LINKS isn't enabled.
[rsync/rsync.git] / generator.c
index 84958b8..6b8a9a2 100644 (file)
@@ -258,15 +258,16 @@ static void generate_and_send_sums(struct map_struct *buf, size_t len, int f_out
 
 
 
-/**
+/*
  * Acts on file number @p i from @p flist, whose name is @p fname.
  *
  * First fixes up permissions, then generates checksums for the file.
  *
  * @note This comment was added later by mbp who was trying to work it
  * out.  It might be wrong.
- **/
-void recv_generator(char *fname, struct file_struct *file, int i, int f_out)
+ */
+static void recv_generator(char *fname, struct file_struct *file, int i,
+                          int f_out)
 {
        int fd;
        STRUCT_STAT st;
@@ -545,7 +546,7 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out)
 void generate_files(int f, struct file_list *flist, char *local_name)
 {
        int i;
-       int phase=0;
+       int phase = 0;
        char fbuf[MAXPATHLEN];
 
        if (verbose > 2) {
@@ -588,7 +589,7 @@ void generate_files(int f, struct file_list *flist, char *local_name)
 
        phase++;
        csum_length = SUM_LENGTH;
-       ignore_times=1;
+       ignore_times = 1;
 
        if (verbose > 2)
                rprintf(FINFO,"generate_files phase=%d\n",phase);