diff options
Diffstat (limited to 'makenimitoki.c')
| -rw-r--r-- | makenimitoki.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/makenimitoki.c b/makenimitoki.c index 00d3e01..52c0988 100644 --- a/makenimitoki.c +++ b/makenimitoki.c @@ -26,6 +26,8 @@ * TODO: make use of templates, maybe? */ +#include <config.h> + #include <err.h> #include <stdio.h> #include <stdlib.h> @@ -42,7 +44,7 @@ make_header(FILE *nimitoki_h) "#ifndef NIMI_TOKI_H\n" "#define NIMI_TOKI_H\n\n" - "#include <stdlib.h>\n" + "#include <stdlib.h>\n\n" "extern const char *nimi_toki[]; /* list of words */\n" "extern const unsigned long suli_pi_nimi_toki /* length of word list */;\n\n" @@ -76,11 +78,11 @@ int main(int argc, char *argv[]) { char *nimitoki_txt_path; /* file path for wordlist file */ - FILE *nimitoki_txt; /* list of words */ - FILE *nimitoki_h; /* output header file */ - FILE *nimitoki_c; /* output code file */ + FILE *nimitoki_txt; /* list of words */ + FILE *nimitoki_h; /* output header file */ + FILE *nimitoki_c; /* output code file */ -#ifdef __OpenBSD__ +#ifdef HAVE_PLEDGE if (pledge("stdio rpath wpath cpath", NULL) == -1) { err(EXIT_FAILURE, "pledge"); } |
