summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-08-19 13:59:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-08-19 13:59:23 +0000
commit0fabbfc2fd6c5473030f8cf9aa934794853b454e (patch)
tree02dccc65d08b1bcf5976cda63e9c3618f17e198a
parent98e74527a9bc170fd38d4f8612f7463ceff637ab (diff)
downloadmandoc-0fabbfc2fd6c5473030f8cf9aa934794853b454e.tar.gz
Avoid incorrect casting by using an implicit cast. Reported by Thomas
Klausner.
-rw-r--r--mdoc_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 994efacc..dd77622a 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -703,7 +703,7 @@ pre_bl(PRE_ARGS)
if (LIST_column == lt) {
n->norm->Bl.ncols =
n->args->argv[i].sz;
- n->norm->Bl.cols = (const char **)
+ n->norm->Bl.cols = (void *)
n->args->argv[i].value;
}
}
@@ -1521,7 +1521,7 @@ post_bl_head(POST_ARGS)
((size_t)mdoc->last->nchild * sizeof(char *));
mdoc->last->norm->Bl.ncols = np->args->argv[j].sz;
- mdoc->last->norm->Bl.cols = (const char **)np->args->argv[j].value;
+ mdoc->last->norm->Bl.cols = (void *)np->args->argv[j].value;
for (i = 0, nn = mdoc->last->child; nn; i++) {
np->args->argv[j].value[i] = nn->string;