summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-12 12:52:50 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-12 12:52:50 +0000
commitba7921a06ba00e108e0f5436948e665c1f21ee64 (patch)
tree171052389d7ec5ff0eb5699da30e2499885426a2
parent725e38dea0823960cd95c9477c6434e08d2e787f (diff)
downloadmandoc-ba7921a06ba00e108e0f5436948e665c1f21ee64.tar.gz
Lint fixes (no effect).
Versioning up.
-rw-r--r--Makefile4
-rw-r--r--mdoc.c6
-rw-r--r--mdoc_action.c3
3 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f085166b..0ae00ff3 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,8 @@ INSTALL_DATA = install -m 0444
INSTALL_LIB = install -m 0644
INSTALL_MAN = $(INSTALL_DATA)
-VERSION = 1.7.14
-VDATE = 11 June 2009
+VERSION = 1.7.15
+VDATE = 12 June 2009
VFLAGS = -DVERSION=\"$(VERSION)\"
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g
diff --git a/mdoc.c b/mdoc.c
index 6c84ff24..74c6b953 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -480,7 +480,8 @@ mdoc_block_alloc(struct mdoc *mdoc, int line, int pos,
p = node_alloc(mdoc, line, pos, tok, MDOC_BLOCK);
if (NULL == p)
return(0);
- if ((p->args = args))
+ p->args = args;
+ if (p->args)
(args->refcnt)++;
return(node_append(mdoc, p));
}
@@ -495,7 +496,8 @@ mdoc_elem_alloc(struct mdoc *mdoc, int line, int pos,
p = node_alloc(mdoc, line, pos, tok, MDOC_ELEM);
if (NULL == p)
return(0);
- if ((p->args = args))
+ p->args = args;
+ if (p->args)
(args->refcnt)++;
return(node_append(mdoc, p));
}
diff --git a/mdoc_action.c b/mdoc_action.c
index 96945c4f..660f1fff 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -538,7 +538,8 @@ post_bl_tagwidth(struct mdoc *m)
* width if a macro.
*/
- if ((n = m->last->body->child)) {
+ n = m->last->body->child;
+ if (n) {
assert(MDOC_BLOCK == n->type);
assert(MDOC_It == n->tok);
n = n->head->child;