diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 12:52:50 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 12:52:50 +0000 |
commit | b3cf0892b65aa9f16b8201298caa411c6b786b31 (patch) | |
tree | 5f8d27dd54a5d229039e887ed8d5999212b8ab44 | |
parent | 91deb3ada9798193fdc1eea30c75fde0f2a96203 (diff) | |
download | mandoc-b3cf0892b65aa9f16b8201298caa411c6b786b31.tar.gz mandoc-b3cf0892b65aa9f16b8201298caa411c6b786b31.tar.zst mandoc-b3cf0892b65aa9f16b8201298caa411c6b786b31.zip |
Lint fixes (no effect).
Versioning up.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | mdoc.c | 8 | ||||
-rw-r--r-- | mdoc_action.c | 5 |
3 files changed, 10 insertions, 7 deletions
@@ -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 @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.76 2009/06/10 20:18:43 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.77 2009/06/12 12:52:51 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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 23da04f8..bfc93da7 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.10 2009/06/12 09:18:00 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.11 2009/06/12 12:52:51 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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; |