X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/45e08edb0869c680ffe110bf0e5117baa5a85510..8f3f8eec08624e538e98f43a3157f3d9a0c41c79:/generator.c diff --git a/generator.c b/generator.c index 3dfeebfa..de5e2bbc 100644 --- a/generator.c +++ b/generator.c @@ -43,7 +43,6 @@ extern int protocol_version; extern int always_checksum; extern char *compare_dest; extern int link_dest; -extern struct file_struct **hlink_list; /* choose whether to skip a particular file */ @@ -102,7 +101,7 @@ void write_sum_head(int f, struct sum_struct *sum) { static struct sum_struct null_sum; - if (sum == (struct sum_struct *)NULL) + if (sum == NULL) sum = &null_sum; write_int(f, sum->count); @@ -408,7 +407,7 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out) fnamecmp = fname; - if ((statret == -1) && (compare_dest != NULL)) { + if (statret == -1 && compare_dest != NULL) { /* try the file at compare_dest instead */ int saveerrno = errno; pathjoin(fnamecmpbuf, sizeof fnamecmpbuf, compare_dest, fname);