aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-09-10 17:08:07 +0000
committerla-ninpre <leobrekalini@gmail.com>2021-09-10 17:08:07 +0000
commit2d542a6c14625efa1b2c6249972bd36e117e3fa8 (patch)
treeadff9bb9a2a159caec94f2f7e375e79ee0abe5aa /main.c
parent00981834d98546471e30441979a36dac52a76ecd (diff)
downloadnimisewi_c-0.3.1.tar.gz
nimisewi_c-0.3.1.zip
added compiler info to nimisewiv0.3.1
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
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/main.c b/main.c
index 8c87c54..d4ce701 100644
--- a/main.c
+++ b/main.c
@@ -32,6 +32,8 @@
int
main(int argc, char *argv[])
{
+ char *ns;
+
#ifdef HAVE_PLEDGE
if (pledge("stdio", NULL) == -1) {
err(EXIT_FAILURE, "pledge");
@@ -41,9 +43,8 @@ main(int argc, char *argv[])
if (!strcmp(argv[1], "--version") || !strcmp(argv[1], "-v")) {
printf("%s\n", PACKAGE_STRING);
printf("%s\n", PACKAGE_DESCRIPTION);
-#if defined(HAVE_PLEDGE) || defined(HAVE_STRLCAT)
- printf("features:\n");
-#endif
+ printf("compiled on %s %s using %s (%d-bit)\n",
+ __DATE__, __TIME__, COMPILER_NAME, sizeof(void*)*8);
#ifdef HAVE_PLEDGE
printf("HAVE_PLEDGE\n");
#endif
@@ -56,14 +57,9 @@ main(int argc, char *argv[])
return EXIT_SUCCESS;
}
}
- char *ns;
- ns = nimi_sewi();
- if (ns == NULL) {
- err(EXIT_FAILURE, "memory allocation failed");
- }
+ ns = nimi_sewi();
printf("%s\n", ns);
-
weka_e_nimi_sewi(ns);
return EXIT_SUCCESS;