From: Volker Lendecke Date: Wed, 10 Aug 2011 17:43:21 +0000 (+0200) Subject: tally: Fix a c++ warning X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=a81be540c665d2e751ed06510a47b934fa075140 tally: Fix a c++ warning (Imported from SAMBA commit cb5c6f441f394f91bedf641aa76841bdb833e440) --- diff --git a/ccan/tally/tally.c b/ccan/tally/tally.c index d3d320eb..2af73533 100644 --- a/ccan/tally/tally.c +++ b/ccan/tally/tally.c @@ -450,7 +450,7 @@ char *tally_histogram(const struct tally *tally, largest_bucket = tally->counts[i]; } - p = graph = malloc(height * (width + 1) + 1); + p = graph = (char *)malloc(height * (width + 1) + 1); if (!graph) { free(tmp); return NULL;