summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-25 12:17:17 +0200
committerGünther Deschner <gd@samba.org>2009-09-25 15:19:07 +0200
commit014a3a992612269344511181a6701bacc816c934 (patch)
treee49e8e3ee6dd951f251cc08f10a8726c50f1fb04 /lib/util
parent956740aa6fe59940bd59786e096d4062288fa587 (diff)
downloadsamba-014a3a992612269344511181a6701bacc816c934.tar.gz
samba-014a3a992612269344511181a6701bacc816c934.tar.bz2
samba-014a3a992612269344511181a6701bacc816c934.zip
lib/util: fix build warning.
Guenther
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/genrand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/genrand.c b/lib/util/genrand.c
index 1519931222..8c7d88a112 100644
--- a/lib/util/genrand.c
+++ b/lib/util/genrand.c
@@ -407,7 +407,7 @@ _PUBLIC_ char** generate_unique_strs(TALLOC_CTX *mem_ctx, size_t len,
strs = talloc_array(mem_ctx, char *, num);
for (i = 0; i < num; i++) {
- char *retstr = talloc_zero_size(mem_ctx, len + 1);
+ char *retstr = (char *)talloc_zero_size(mem_ctx, len + 1);
rem = i;
for (j = len - 1; j >= 0; j--) {
place = s_pow(c_size, j);