summaryrefslogtreecommitdiffstats
path: root/man_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-23 12:40:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-23 12:40:04 +0000
commit22671958d103a1eca7f6675bff049e902034637b (patch)
treeaedf5abb7525d51424973358454579d2540e6303 /man_argv.c
parente29490c2a6462d5308d34e9cad6e8b105edbd029 (diff)
downloadmandoc-22671958d103a1eca7f6675bff049e902034637b.tar.gz
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/man_argv.c b/man_argv.c
index 2e22139e..6e69be8a 100644
--- a/man_argv.c
+++ b/man_argv.c
@@ -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;