From 91cad71390bd2a0330891083c65d3f9000b74657 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 12 Feb 2011 17:30:11 +0100 Subject: tdb: Fix a C++ warning Autobuild-User: Volker Lendecke Autobuild-Date: Sat Feb 12 19:50:55 CET 2011 on sn-devel-104 --- lib/tdb/common/summary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb') 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; -- cgit