summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-02 10:53:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-02 10:53:28 +0000
commit869286ca79b58cee9a78aae60175b751a96ea4ea (patch)
tree1973997130476f4ab6b4e8be93dd52d722bd32e9
parentaa87cd6fc1c369d78cc8e249a6410769605e6e52 (diff)
downloadmandoc-869286ca79b58cee9a78aae60175b751a96ea4ea.tar.gz
Lint fixes.
-rw-r--r--mdoc.h2
-rw-r--r--mdoc_macro.c2
-rw-r--r--mdoc_term.c7
-rw-r--r--term_ps.c1
4 files changed, 8 insertions, 4 deletions
diff --git a/mdoc.h b/mdoc.h
index 0f0164ba..f3f49864 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -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);
}
diff --git a/term_ps.c b/term_ps.c
index 1852c3d7..8d630c39 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <unistd.h>
#include "out.h"
#include "main.h"