summaryrefslogtreecommitdiff
path: root/backup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-02 05:06:34 +0000
committerWayne Davison <wayned@samba.org>2004-02-02 05:06:34 +0000
commitf3af206d8db24ec5d9960a6aa01c2b97c80d9eda (patch)
tree701f5b7960d9401723543426d5951f03f33ee35e /backup.c
parentdf0054ab13b7d045093d1e6ae44f369a45edb851 (diff)
downloadrsync-f3af206d8db24ec5d9960a6aa01c2b97c80d9eda.tar.gz
Changed args to make_file() and free_file().
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/backup.c b/backup.c
index e9dfb496..c1b80834 100644
--- a/backup.c
+++ b/backup.c
@@ -199,7 +199,7 @@ static int keep_backup(char *fname)
if (do_stat(fname, &st)) return 1;
#endif
- file = make_file(fname, NULL, NO_EXCLUDES);
+ file = make_file(fname, NO_EXCLUDES);
/* the file could have disappeared */
if (!file) return 1;
@@ -282,8 +282,7 @@ static int keep_backup(char *fname)
}
}
set_perms(keep_name, file, NULL, 0);
- free_file(file);
- free(file);
+ free_file(file, FREE_STRUCT);
if (verbose > 1)
rprintf(FINFO, "keep_backup %s -> %s\n", fname, keep_name);