X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Foutput%2Fjournal.c;h=f708e6d787cb40b9090af06e552a6b79c9892dbd;hb=df1d194af32e35739355981252785e768f21ebb0;hp=a07fd4a094fdc1f213e82c67f965f14eb570973a;hpb=672776c201a00e1a667d37a957e7d2211300d48a;p=pspp diff --git a/src/output/journal.c b/src/output/journal.c index a07fd4a094..f708e6d787 100644 --- a/src/output/journal.c +++ b/src/output/journal.c @@ -140,16 +140,16 @@ static const struct output_driver_class journal_class = void journal_init (void) { - /* Create journal driver. */ - output_driver_init (&journal.driver, &journal_class, "journal", - SETTINGS_DEVICE_UNFILTERED); - journal.file = NULL; + journal = (struct journal_driver) { + .driver = { + .class = &journal_class, + .name = xstrdup ("journal"), + .device_type = SETTINGS_DEVICE_UNFILTERED, + } + }; - /* Register journal driver. */ output_driver_register (&journal.driver); - journal_enable (); - journal.destroyed = false; } /* Disables journaling. */