X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fsys-file-writer.c;h=05d42b080ea9152ae280f6b2ccc327f87a551608;hb=f7d622c96c3a9e10447a23c1efb9e027c8bde7cf;hp=e0c6eade4b158d81e457bdb263b490828500d6a8;hpb=0df9cdd3df66caf4353128feff3008289cda8115;p=pspp diff --git a/src/data/sys-file-writer.c b/src/data/sys-file-writer.c index e0c6eade4b..05d42b080e 100644 --- a/src/data/sys-file-writer.c +++ b/src/data/sys-file-writer.c @@ -33,7 +33,6 @@ #include "data/casewriter.h" #include "data/dictionary.h" #include "data/file-handle-def.h" -#include "data/file-name.h" #include "data/format.h" #include "data/make-file.h" #include "data/missing-values.h" @@ -251,8 +250,7 @@ sfm_open_writer (struct file_handle *fh, struct dictionary *d, mode = 0444; if (opts.create_writeable) mode |= 0222; - w->rf = replace_file_start (fh_get_file_name (fh), "wb", mode, - &w->file, NULL); + w->rf = replace_file_start (fh, "wb", mode, &w->file); if (w->rf == NULL) { msg (ME, _("Error opening `%s' for writing as a system file: %s."),