summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 15:06:03 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 15:06:03 +0000
commit0e8ce409f93e322abb8f4e999f2bef84fc98604b (patch)
tree0900b9bbcc93cbfa81e989e802120a27bc5c92d1
parent12c59411c4adf333715dc85394a72cbbab885859 (diff)
downloadmandoc-0e8ce409f93e322abb8f4e999f2bef84fc98604b.tar.gz
mandoc-0e8ce409f93e322abb8f4e999f2bef84fc98604b.tar.zst
mandoc-0e8ce409f93e322abb8f4e999f2bef84fc98604b.zip
Lint-ified.
-rw-r--r--html.c8
-rw-r--r--mdoc_html.c5
2 files changed, 8 insertions, 5 deletions
diff --git a/html.c b/html.c
index f61002dd..075811e2 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.59 2009/10/07 14:39:00 kristaps Exp $ */
+/* $Id: html.c,v 1.60 2009/10/07 15:06:03 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -549,7 +549,8 @@ buffmt_includes(struct html *h, const char *name)
const char *p, *pp;
pp = h->base_includes;
- while ((p = strchr(pp, '%'))) {
+ p = strchr(pp, '%');
+ while (NULL != p) {
bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('I'):
@@ -573,7 +574,8 @@ buffmt_man(struct html *h,
const char *p, *pp;
pp = h->base_man;
- while ((p = strchr(pp, '%'))) {
+ p = strchr(pp, '%');
+ while (NULL != p) {
bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('S'):
diff --git a/mdoc_html.c b/mdoc_html.c
index bdbd6fb4..5704a560 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.25 2009/10/07 14:50:28 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.26 2009/10/07 15:06:03 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1624,7 +1624,8 @@ mdoc_fn_pre(MDOC_ARGS)
assert(n->child->string);
sp = n->child->string;
- if ((ep = strchr(sp, ' '))) {
+ ep = strchr(sp, ' ');
+ if (NULL != ep) {
PAIR_CLASS_INIT(&tag[0], "ftype");
t = print_otag(h, TAG_SPAN, 1, tag);