Avoid "definition without prototype" warnings
[pspp] / src / data / por-file-writer.c
index 778b8e402f3a303157ee597380872caa87cfb000..3a4e88e7f0cb6e5c6b5a545340e00f8168d7723d 100644 (file)
@@ -153,8 +153,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."),