diff options
author | Günther Deschner <gd@samba.org> | 2009-09-25 12:17:17 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-25 15:19:07 +0200 |
commit | 014a3a992612269344511181a6701bacc816c934 (patch) | |
tree | e49e8e3ee6dd951f251cc08f10a8726c50f1fb04 /lib/util | |
parent | 956740aa6fe59940bd59786e096d4062288fa587 (diff) | |
download | samba-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.c | 2 |
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); |