diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-05 17:07:52 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-05 17:07:52 +0000 |
commit | df5058c919cbd1538d0a04cb2a4c179c0291566f (patch) | |
tree | b230675fc78a70b2d925e74a87bc4ccf3fa51492 /fcgi.c | |
parent | a01a91db06a943ef0cc8fbb7294786814a63b65c (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"); |