diff options
author | Laine Stump <laine@redhat.com> | 2023-02-15 03:24:37 -0500 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-02-16 17:32:27 +0100 |
commit | c9af6f92db9f760e0b03a75bf688439e4aeab231 (patch) | |
tree | 88807dd9f5aa5b0379d792ac1ec1fc15bf1f4eb3 /log.c | |
parent | a1ab1ca2eedbc16139cf03df06c6012b22f1f2cb (diff) | |
download | passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.gz passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.bz2 passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.lz passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.xz passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.zst passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.zip |
convert all remaining err() followed by exit() to die()
This actually leaves us with 0 uses of err(), but someone could want
to use it in the future, so we may as well leave it around.
Signed-off-by: Laine Stump <laine@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -193,10 +193,8 @@ void logfile_init(const char *name, const char *path, size_t size) log_file = open(path, O_CREAT | O_TRUNC | O_APPEND | O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR); - if (log_file == -1) { - err("Couldn't open log file %s: %s", path, strerror(errno)); - exit(EXIT_FAILURE); - } + if (log_file == -1) + die("Couldn't open log file %s: %s", path, strerror(errno)); log_size = size ? size : LOGFILE_SIZE_DEFAULT; |