From 2d542a6c14625efa1b2c6249972bd36e117e3fa8 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Fri, 10 Sep 2021 17:08:07 +0000 Subject: added compiler info to nimisewi also removed error checks from nimisewi, nimisewi.cgi and nimisewi_gemini.cgi because this error check has to happen inside nimi_sewi() and not in those programs. FossilOrigin-Name: 2fd4c9495753569c904132ee83cd5f14662389c69399c27f289e0e3ae35aa0cb --- cgi.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'cgi.c') diff --git a/cgi.c b/cgi.c index 976bad9..e71df22 100644 --- a/cgi.c +++ b/cgi.c @@ -75,26 +75,23 @@ print_html_footer(void) int main(void) { + char *ns; + #ifdef HAVE_PLEDGE if (pledge("stdio", NULL) == -1) { err(EXIT_FAILURE, "pledge"); } #endif - char *ns; - ns = nimi_sewi(); - if (ns == NULL) { - err(EXIT_FAILURE, "memory allocation failed"); - } - print_response_header(); print_html_header(); printf("

"); + ns = nimi_sewi(); printf("%s", ns); + weka_e_nimi_sewi(ns); printf("

\n"); - weka_e_nimi_sewi(ns); print_html_footer(); -- cgit v1.2.3