diff options
author | Volker Lendecke <vl@samba.org> | 2011-08-10 19:43:21 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-08-10 19:56:09 +0200 |
commit | cb5c6f441f394f91bedf641aa76841bdb833e440 (patch) | |
tree | 493b841c2d9d57bf34d2c04c1030d68f2c6c527e | |
parent | 54282e9f4eda083e70c7e56dda2bf425209add6d (diff) | |
download | samba-cb5c6f441f394f91bedf641aa76841bdb833e440.tar.gz samba-cb5c6f441f394f91bedf641aa76841bdb833e440.tar.xz samba-cb5c6f441f394f91bedf641aa76841bdb833e440.zip |
Fix a c++ warning
-rw-r--r-- | lib/ccan/tally/tally.c | 2 |
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; |