projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ascii: Always include <sys/ioctl.h> if we're calling ioctl.
[pspp]
/
src
/
output
/
msglog.c
diff --git
a/src/output/msglog.c
b/src/output/msglog.c
index ef2cf6b007deef169f6481b32ef7d5c80352479c..7fe6555f19dc4acc8f0d16ff3812392f5d9fbbd9 100644
(file)
--- a/
src/output/msglog.c
+++ b/
src/output/msglog.c
@@
-29,7
+29,7
@@
#include "libpspp/cast.h"
#include "libpspp/message.h"
#include "output/driver-provider.h"
#include "libpspp/cast.h"
#include "libpspp/message.h"
#include "output/driver-provider.h"
-#include "output/
message
-item.h"
+#include "output/
output
-item.h"
#include "gl/fwriteerror.h"
#include "gl/xalloc.h"
#include "gl/fwriteerror.h"
#include "gl/xalloc.h"
@@
-98,10
+98,9
@@
msglog_submit (struct output_driver *driver, const struct output_item *item)
{
struct msglog_driver *ml = msglog_driver_cast (driver);
{
struct msglog_driver *ml = msglog_driver_cast (driver);
- if (i
s_message_item (item)
)
+ if (i
tem->type == OUTPUT_ITEM_MESSAGE
)
{
{
- const struct message_item *message_item = to_message_item (item);
- char *s = msg_to_string (message_item_get_msg (message_item));
+ char *s = msg_to_string (item->message);
fprintf (ml->file, "%s\n", s);
free (s);
}
fprintf (ml->file, "%s\n", s);
free (s);
}
@@
-109,8
+108,7
@@
msglog_submit (struct output_driver *driver, const struct output_item *item)
static const struct output_driver_class msglog_class =
{
static const struct output_driver_class msglog_class =
{
- "msglog",
- msglog_destroy,
- msglog_submit,
- NULL
+ .name = "msglog",
+ .destroy = msglog_destroy,
+ .submit = msglog_submit,
};
};