mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
client: initialize/deinitialize the logging system
This commit is contained in:
parent
c5875bf97c
commit
c0a9cf7767
1 changed files with 2 additions and 0 deletions
2
client.c
2
client.c
|
|
@ -40,6 +40,7 @@ print_usage(const char *prog_name)
|
|||
int
|
||||
main(int argc, char *const *argv)
|
||||
{
|
||||
log_init(LOG_FACILITY_USER);
|
||||
int ret = EXIT_FAILURE;
|
||||
|
||||
const char *const prog_name = argv[0];
|
||||
|
|
@ -190,5 +191,6 @@ main(int argc, char *const *argv)
|
|||
err:
|
||||
if (fd != -1)
|
||||
close(fd);
|
||||
log_deinit();
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue