Commit commit.

This commit is contained in:
Neil 2023-04-21 20:49:36 -07:00
parent d6c1b22b5d
commit e05a82a860

View File

@ -11,19 +11,19 @@
#include <assert.h>
int main(void) {
const char *fail = 0;
const char *intent = "start";
struct journal jrnl = {0};
errno = 0;
intent = "loading journal";
jrnl = journal("../journal");
fprintf(stderr, "Journal: %s.\n", journal_to_string(&jrnl));
if(errno) goto catch;
goto finally;
catch:
if(!fail) fail = "scan";
perror(fail);
perror(intent);
finally:
journal_(&jrnl);
return fail ? EXIT_FAILURE : EXIT_SUCCESS;
return intent ? EXIT_FAILURE : EXIT_SUCCESS;
}