mirror of
https://passt.top/passt
synced 2025-06-07 08:25:34 +02:00
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>
This commit is contained in:
parent
a1ab1ca2ee
commit
c9af6f92db
6 changed files with 47 additions and 91 deletions
6
log.c
6
log.c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue