Got rid of some superfluous parens.
authorWayne Davison <wayned@samba.org>
Fri, 27 Feb 2004 08:03:49 +0000 (08:03 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 27 Feb 2004 08:03:49 +0000 (08:03 +0000)
generator.c
receiver.c

index bf3092d..de5e2bb 100644 (file)
@@ -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);
index c84c041..75bf0ce 100644 (file)
@@ -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);