Commit commit.
This commit is contained in:
parent
d6c1b22b5d
commit
e05a82a860
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user