Continue reforming error message support. In this phase, get rid of
[pspp] / src / language / data-io / data-writer.c
index eb5fe01963012a57626760fcc7b226825fc94395..652d522f3e1ab7ad5f8b363d5c06c09a14e29577 100644 (file)
@@ -25,7 +25,7 @@
 #include <libpspp/alloc.h>
 #include <libpspp/message.h>
 #include <language/data-io/file-handle.h>
-#include <data/filename.h>
+#include <data/file-name.h>
 #include <libpspp/str.h>
 
 #include "gettext.h"
@@ -54,14 +54,14 @@ dfm_open_writer (struct file_handle *fh)
 
   w = *aux = xmalloc (sizeof *w);
   w->fh = fh;
-  w->file = fn_open (fh_get_filename (w->fh), "wb");
+  w->file = fn_open (fh_get_file_name (w->fh), "wb");
   w->bounce = NULL;
 
   if (w->file == NULL)
     {
       msg (ME, _("An error occurred while opening \"%s\" for writing "
                  "as a data file: %s."),
-           fh_get_filename (w->fh), strerror (errno));
+           fh_get_file_name (w->fh), strerror (errno));
       goto error;
     }