aboutsummaryrefslogtreecommitdiff
path: root/fcgi.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-05 17:07:52 +0000
committerOmar Polo <op@omarpolo.com>2023-06-05 17:07:52 +0000
commitdf5058c919cbd1538d0a04cb2a4c179c0291566f (patch)
treeb230675fc78a70b2d925e74a87bc4ccf3fa51492 /fcgi.c
parenta01a91db06a943ef0cc8fbb7294786814a63b65c (diff)
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
Diffstat (limited to 'fcgi.c')
-rw-r--r--fcgi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fcgi.c b/fcgi.c
index 2d1dc86..502b994 100644
--- a/fcgi.c
+++ b/fcgi.c
@@ -20,6 +20,8 @@
#include <errno.h>
#include <string.h>
+#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");