Got rid of some superfluous parens.

This commit is contained in:
Wayne Davison
2004-02-27 08:03:49 +00:00
parent 48d704af52
commit c338460d66
2 changed files with 3 additions and 3 deletions

View 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);

View 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);