X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fany-reader.c;h=0ab6dc23fd4786e091d295b5e7c66331d3e4d53a;hb=3f2ed1c5fe6dc692ca00bb18a15e41617fa2d37d;hp=0156d0b5cf2329c8ff7b7b4a0b44e127b548254e;hpb=a7a18bd636d11d167c1ebe54c9893a0c23d44bc9;p=pspp-builds.git diff --git a/src/data/any-reader.c b/src/data/any-reader.c index 0156d0b5..0ab6dc23 100644 --- a/src/data/any-reader.c +++ b/src/data/any-reader.c @@ -68,17 +68,17 @@ try_detect (struct file_handle *handle, bool (*detect) (FILE *)) FILE *file; bool is_type; - file = fn_open (fh_get_filename (handle), "rb"); + file = fn_open (fh_get_file_name (handle), "rb"); if (file == NULL) { msg (ME, _("An error occurred while opening \"%s\": %s."), - fh_get_filename (handle), strerror (errno)); + fh_get_file_name (handle), strerror (errno)); return IO_ERROR; } is_type = detect (file); - fn_close (fh_get_filename (handle), file); + fn_close (fh_get_file_name (handle), file); return is_type ? YES : NO; } @@ -127,7 +127,7 @@ any_reader_open (struct file_handle *handle, struct dictionary **dict) pfm_open_reader (handle, dict, NULL)); msg (SE, _("\"%s\" is not a system or portable file."), - fh_get_filename (handle)); + fh_get_file_name (handle)); return NULL; }