Commit c338460d authored by Wayne Davison's avatar Wayne Davison

Got rid of some superfluous parens.

parent 48d704af
......@@ -101,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);
......@@ -407,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);
......
......@@ -361,7 +361,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name)
/* open the file */
fd1 = do_open(fnamecmp, O_RDONLY, 0);
if ((fd1 == -1) && (compare_dest != NULL)) {
if (fd1 == -1 && compare_dest != NULL) {
/* try the file at compare_dest instead */
pathjoin(fnamecmpbuf, sizeof fnamecmpbuf,
compare_dest, fname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment