aboutsummaryrefslogtreecommitdiffstats
path: root/cgi_gemini.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgi_gemini.c')
-rw-r--r--cgi_gemini.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/cgi_gemini.c b/cgi_gemini.c
index d2bd866..171011e 100644
--- a/cgi_gemini.c
+++ b/cgi_gemini.c
@@ -9,22 +9,19 @@
int
main(void)
{
+ char *ns;
+
#ifdef HAVE_PLEDGE
if (pledge("stdio", NULL) == -1) {
err(EXIT_FAILURE, "pledge failed");
}
#endif
- char *ns;
-
- ns = nimi_sewi();
- if (ns == NULL) {
- err(EXIT_FAILURE, "memory allocation failed");
- }
-
printf("20 text/gemini\r\n");
printf("sina o lukin e nimi sewi:\n\n");
+ ns = nimi_sewi();
printf("# %s\n", ns);
+ weka_e_nimi_sewi(ns);
return EXIT_SUCCESS;
}