X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fmsglog.c;h=a3f195410406b70c6f18c00d57578d9cf6cf8fd6;hb=fce028c380d496e42823fd24774e0159ed7cc110;hp=4042b460e7e9e2b701195240cc1341d41723621b;hpb=a258e53c63a08b0ec48aea8f03808eb651729424;p=pspp diff --git a/src/output/msglog.c b/src/output/msglog.c index 4042b460e7..a3f1954104 100644 --- a/src/output/msglog.c +++ b/src/output/msglog.c @@ -26,10 +26,10 @@ #include "data/file-name.h" #include "data/settings.h" #include "libpspp/cast.h" +#include "libpspp/message.h" #include "output/driver-provider.h" #include "output/message-item.h" -#include "gl/error.h" #include "gl/fwriteerror.h" #include "gl/xalloc.h" @@ -63,7 +63,7 @@ msglog_create (const char *file_name) file = fn_open (file_name, "w"); if (file == NULL) { - error (0, errno, _("error opening output file `%s'"), file_name); + msg_error (errno, _("error opening output file `%s'"), file_name); return NULL; }