From 923c10ecddac6baecf6db444cee68c380367592c Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 22 Jun 2009 13:13:10 +0000 Subject: Lint fixes. Version up. --- Makefile | 4 ++-- mdoc_term.c | 5 +++-- term.c | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0391a50c..e6ed0c78 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.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 0cacdd29..3e3219f8 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.17 2009/06/22 12:38:07 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.18 2009/06/22 13:13:10 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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); } diff --git a/term.c b/term.c index 4ab338d9..ef221086 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.82 2009/06/22 12:38:07 kristaps Exp $ */ +/* $Id: term.c,v 1.83 2009/06/22 13:13:10 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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]); } -- cgit v1.2.3-56-ge451