summaryrefslogtreecommitdiffstats
path: root/html.c
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
commit2a03767ec0441b939c585ee49c0656056041bf22 (patch)
tree0d68685bf6f68db7d6f4fb98e7f5f96bf4a157ef /html.c
parent1e11aac342ce2784ea599de3b73ad42eedb9739b (diff)
downloadmandoc-2a03767ec0441b939c585ee49c0656056041bf22.tar.gz
Lint-ified.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/html.c b/html.c
index ad90fad7..97107f6d 100644
--- a/html.c
+++ b/html.c
@@ -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'):