diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-22 13:13:10 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-22 13:13:10 +0000 |
commit | e5f886f2585699404877aba14291673e85615e9b (patch) | |
tree | 46a17500fbebb5a2a2f97de7489b61193052db0a | |
parent | f951b5d078f310702724f3214b50e17b27716023 (diff) | |
download | mandoc-e5f886f2585699404877aba14291673e85615e9b.tar.gz |
Lint fixes.VERSION.1.7.20
Version up.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | mdoc_term.c | 3 | ||||
-rw-r--r-- | term.c | 3 |
3 files changed, 6 insertions, 4 deletions
@@ -9,8 +9,8 @@ INSTALL_DATA = install -m 0444 INSTALL_LIB = install -m 0644 INSTALL_MAN = $(INSTALL_DATA) -VERSION = 1.7.19 -VDATE = 17 June 2009 +VERSION = 1.7.20 +VDATE = 22 June 2009 VFLAGS = -DVERSION=\"$(VERSION)\" CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g diff --git a/mdoc_term.c b/mdoc_term.c index 89da4318..cfb6f098 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1309,7 +1309,8 @@ termp_lb_pre(DECL_ARGS) const char *lb; assert(node->child && MDOC_TEXT == node->child->type); - if ((lb = mdoc_a2lib(node->child->string))) { + lb = mdoc_a2lib(node->child->string); + if (lb) { term_word(p, lb); return(0); } @@ -413,7 +413,8 @@ term_nescape(struct termp *p, const char *word, size_t len) size_t sz; int i; - if ((rhs = term_a2ascii(p->symtab, word, len, &sz))) + rhs = term_a2ascii(p->symtab, word, len, &sz); + if (rhs) for (i = 0; i < (int)sz; i++) term_encodea(p, rhs[i]); } |