From: Volker Lendecke Date: Sat, 12 Feb 2011 16:30:11 +0000 (+0100) Subject: tdb: Fix a C++ warning X-Git-Tag: tevent-0.9.11~716 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91cad71390bd2a0330891083c65d3f9000b74657;p=thirdparty%2Fsamba.git tdb: Fix a C++ warning Autobuild-User: Volker Lendecke Autobuild-Date: Sat Feb 12 19:50:55 CET 2011 on sn-devel-104 --- diff --git a/lib/tdb/common/summary.c b/lib/tdb/common/summary.c index 29959f9e5f3..da1ec2b739d 100644 --- a/lib/tdb/common/summary.c +++ b/lib/tdb/common/summary.c @@ -155,7 +155,7 @@ _PUBLIC_ char *tdb_summary(struct tdb_context *tdb) /* 20 is max length of a %zu. */ len = strlen(SUMMARY_FORMAT) + 35*20 + 1; - ret = malloc(len); + ret = (char *)malloc(len); if (!ret) goto unlock;