From df5058c919cbd1538d0a04cb2a4c179c0291566f Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 5 Jun 2023 17:07:52 +0000 Subject: provide a more usual fatal fatal usually appends the error string. Add 'fatalx' that doesn't. Fix callers and move the prototypes to log.h --- fcgi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fcgi.c') diff --git a/fcgi.c b/fcgi.c index 2d1dc86..502b994 100644 --- a/fcgi.c +++ b/fcgi.c @@ -20,6 +20,8 @@ #include #include +#include "log.h" + /* * Sometimes it can be useful to inspect the fastcgi traffic as * received by gmid. @@ -355,8 +357,7 @@ fcgi_req(struct client *c) NULL, 0, NI_NUMERICHOST); if (e != 0) - fatal("getnameinfo failed: %s (%s)", - gai_strerror(e), strerror(errno)); + fatalx("getnameinfo failed: %s", gai_strerror(e)); fcgi_begin_request(c->cgibev); fcgi_send_param(c->cgibev, "GATEWAY_INTERFACE", "CGI/1.1"); -- cgit v1.2.3