summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-10 19:43:21 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:09 +0200
commitcb5c6f441f394f91bedf641aa76841bdb833e440 (patch)
tree493b841c2d9d57bf34d2c04c1030d68f2c6c527e /lib
parent54282e9f4eda083e70c7e56dda2bf425209add6d (diff)
downloadsamba-cb5c6f441f394f91bedf641aa76841bdb833e440.tar.gz
samba-cb5c6f441f394f91bedf641aa76841bdb833e440.tar.bz2
samba-cb5c6f441f394f91bedf641aa76841bdb833e440.zip
Fix a c++ warning
Diffstat (limited to 'lib')
-rw-r--r--lib/ccan/tally/tally.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c
index d3d320eb1b..2af7353380 100644
--- a/lib/ccan/tally/tally.c
+++ b/lib/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;