From: Peter Eisentraut <peter@eisentraut.org> Date: Fri, 27 Sep 2019 07:23:18 +0000 (+0200) Subject: Fix inappropriate uses of fatal_perror() X-Git-Tag: pgbouncer_1_12_0~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f08c4d1d7d45b65dc02a75c7d0cad712383cc6c;p=pgbouncer Fix inappropriate uses of fatal_perror() Use just fatal() instead when errno is not being set. --- diff --git a/src/main.c b/src/main.c index 13d1107..3fe6e4a 100644 --- a/src/main.c +++ b/src/main.c @@ -753,7 +753,7 @@ static void dns_setup(void) return; adns = adns_create_context(); if (!adns) - fatal_perror("dns setup failed"); + fatal("dns setup failed"); } static void xfree(char **ptr_p) diff --git a/src/util.c b/src/util.c index 6880a98..d8d202c 100644 --- a/src/util.c +++ b/src/util.c @@ -279,7 +279,7 @@ void safe_evtimer_add(struct event *ev, struct timeval *tv) return; if (timer_backup_used >= TIMER_BACKUP_SLOTS) - fatal_perror("TIMER_BACKUP_SLOTS full"); + fatal("TIMER_BACKUP_SLOTS full"); ts = &timer_backup_list[timer_backup_used++]; ts->ev = ev;