X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/b3d021af18b2745d4a2594b05bc4e605d918a9e3..4aac2c71991f01c5694f74c4b7506926bc92ea17:/mandocd.c?ds=sidebyside diff --git a/mandocd.c b/mandocd.c index b8a2b6dc..9aba9cc1 100644 --- a/mandocd.c +++ b/mandocd.c @@ -1,4 +1,4 @@ -/* $Id: mandocd.c,v 1.4 2017/02/08 16:11:41 schwarze Exp $ */ +/* $Id: mandocd.c,v 1.6 2017/06/24 14:38:32 schwarze Exp $ */ /* * Copyright (c) 2017 Michael Stapelberg * Copyright (c) 2017 Ingo Schwarze @@ -49,7 +49,7 @@ enum outt { static void process(struct mparse *, enum outt, void *); static int read_fds(int, int *); -static void usage(void) __attribute__((noreturn)); +static void usage(void) __attribute__((__noreturn__)); #define NUM_FDS 3 @@ -171,7 +171,7 @@ main(int argc, char *argv[]) mchars_alloc(); parser = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1, - MANDOCLEVEL_BADARG, NULL, defos); + MANDOCERR_MAX, NULL, MANDOC_OS_OTHER, defos); memset(&options, 0, sizeof(options)); switch (outtype) {