summaryrefslogtreecommitdiffstats
path: root/lib/tdb/common/summary.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-12 17:30:11 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-12 19:50:55 +0100
commit91cad71390bd2a0330891083c65d3f9000b74657 (patch)
treeb709fcf0bf9ec6e4b5253875ab6b1b4095397434 /lib/tdb/common/summary.c
parentd38ab83bab13df8e77cd5bd2c48833c566d77091 (diff)
downloadsamba-91cad71390bd2a0330891083c65d3f9000b74657.tar.gz
samba-91cad71390bd2a0330891083c65d3f9000b74657.tar.xz
samba-91cad71390bd2a0330891083c65d3f9000b74657.zip
tdb: Fix a C++ warning
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Feb 12 19:50:55 CET 2011 on sn-devel-104
Diffstat (limited to 'lib/tdb/common/summary.c')
-rw-r--r--lib/tdb/common/summary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/summary.c b/lib/tdb/common/summary.c
index 29959f9e5f..da1ec2b739 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;