X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fpor-file-writer.c;h=053b054f6b5f10e36f13a86a95e3654239847a38;hb=00aad3b983774328140a04436d7d6ae7925fec97;hp=778b8e402f3a303157ee597380872caa87cfb000;hpb=912f3dd1f6cf864162234ee28ee599f5b543b290;p=pspp diff --git a/src/data/por-file-writer.c b/src/data/por-file-writer.c index 778b8e402f..053b054f6b 100644 --- a/src/data/por-file-writer.c +++ b/src/data/por-file-writer.c @@ -32,7 +32,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" @@ -153,8 +152,8 @@ pfm_open_writer (struct file_handle *fh, struct dictionary *dict, mode = 0444; if (opts.create_writeable) mode |= 0222; - w->rf = replace_file_start (fh_get_file_name (fh), "w", mode, - &w->file, NULL); + w->rf = replace_file_start (fh, "w", mode, + &w->file); if (w->rf == NULL) { msg (ME, _("Error opening `%s' for writing as a portable file: %s."),