summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-15 15:26:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-15 15:26:19 +0000
commit0148a94a8ba50fcb8291b39a5aa33adf54173755 (patch)
tree9ac8b0265352a1e32d98d62fdbfa7f24b2bbf34d /mdoc_argv.c
parent2761166b74de8c3bd61bb7bafb4617e9a946462c (diff)
downloadmandoc-0148a94a8ba50fcb8291b39a5aa33adf54173755.tar.gz
args() should return ARGS_ERROR, not 0.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index d27069d1..d4e957f2 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -390,8 +390,8 @@ mdoc_args(struct mdoc *m, int line,
static int
-args(struct mdoc *m, int line,
- int *pos, char *buf, int fl, char **v)
+args(struct mdoc *m, int line, int *pos,
+ char *buf, int fl, char **v)
{
int i;
char *p, *pp;
@@ -499,10 +499,10 @@ args(struct mdoc *m, int line,
if (p && 0 == *p)
if ( ! mdoc_pwarn(m, line, *pos, ECOLEMPTY))
- return(0);
+ return(ARGS_ERROR);
if (p && 0 == *p && p > *v && ' ' == *(p - 1))
if ( ! mdoc_pwarn(m, line, *pos, ETAILWS))
- return(0);
+ return(ARGS_ERROR);
if (p)
return(ARGS_PHRASE);
@@ -514,7 +514,7 @@ args(struct mdoc *m, int line,
if (p > *v && ' ' == *(p - 1))
if ( ! mdoc_pwarn(m, line, *pos, ETAILWS))
- return(0);
+ return(ARGS_ERROR);
*pos += (int)(p - *v);
return(ARGS_PHRASE);