diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-02 10:53:28 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-02 10:53:28 +0000 |
commit | 869286ca79b58cee9a78aae60175b751a96ea4ea (patch) | |
tree | 1973997130476f4ab6b4e8be93dd52d722bd32e9 | |
parent | aa87cd6fc1c369d78cc8e249a6410769605e6e52 (diff) | |
download | mandoc-869286ca79b58cee9a78aae60175b751a96ea4ea.tar.gz |
Lint fixes.
-rw-r--r-- | mdoc.h | 2 | ||||
-rw-r--r-- | mdoc_macro.c | 2 | ||||
-rw-r--r-- | mdoc_term.c | 7 | ||||
-rw-r--r-- | term_ps.c | 1 |
4 files changed, 8 insertions, 4 deletions
@@ -252,7 +252,7 @@ struct mdoc_arg { enum mdoc_endbody { ENDBODY_NOT = 0, ENDBODY_SPACE, - ENDBODY_NOSPACE, + ENDBODY_NOSPACE }; enum mdoc_list { diff --git a/mdoc_macro.c b/mdoc_macro.c index bce50bd4..a2006408 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -34,7 +34,7 @@ enum rew { /* see rew_dohalt() */ REWIND_THIS, REWIND_MORE, REWIND_LATER, - REWIND_ERROR, + REWIND_ERROR }; static int blk_full(MACRO_PROT_ARGS); diff --git a/mdoc_term.c b/mdoc_term.c index 81073448..642eda34 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -2170,15 +2170,18 @@ termp_bk_pre(DECL_ARGS) switch (n->type) { case (MDOC_BLOCK): - return(1); + break; case (MDOC_HEAD): return(0); case (MDOC_BODY): p->flags |= TERMP_PREKEEP; - return(1); + break; default: abort(); + /* NOTREACHED */ } + + return(1); } @@ -27,6 +27,7 @@ #include <stdlib.h> #include <string.h> #include <time.h> +#include <unistd.h> #include "out.h" #include "main.h" |