diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-23 12:40:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-23 12:40:04 +0000 |
commit | 589f74a138ab93e81b858ebb9a8218a19d5a2017 (patch) | |
tree | d308e82980fe305f185c5df31a534d64c0501595 /man_argv.c | |
parent | 74625e09d203b8b3c31182a00609d7b437f942c7 (diff) | |
download | mandoc-589f74a138ab93e81b858ebb9a8218a19d5a2017.tar.gz mandoc-589f74a138ab93e81b858ebb9a8218a19d5a2017.tar.zst mandoc-589f74a138ab93e81b858ebb9a8218a19d5a2017.zip |
First, make -man ARGS_EOLN et al. be an enum. Second, remove
ARGS_ERROR, as it is never returned by man_args(). Then clean up
invocations of man_args() to only check for ARGS_EOLN.
Diffstat (limited to 'man_argv.c')
-rw-r--r-- | man_argv.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_argv.c,v 1.7 2011/03/22 14:33:05 kristaps Exp $ */ +/* $Id: man_argv.c,v 1.8 2011/03/23 12:40:04 kristaps Exp $ */ /* * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> * @@ -18,8 +18,6 @@ #include "config.h" #endif -#include <sys/types.h> - #include <assert.h> #include "man.h" @@ -27,7 +25,7 @@ #include "libman.h" #include "libmandoc.h" -int +enum margserr man_args(struct man *m, int line, int *pos, char *buf, char **v) { char *start; |