From 0fabbfc2fd6c5473030f8cf9aa934794853b454e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 19 Aug 2011 13:59:23 +0000 Subject: Avoid incorrect casting by using an implicit cast. Reported by Thomas Klausner. --- mdoc_validate.c | 4 ++-- 1 file 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; -- cgit