tdb: Fix a C++ warning
authorVolker Lendecke <vl@samba.org>
Sat, 12 Feb 2011 16:30:11 +0000 (17:30 +0100)
committerVolker Lendecke <vlendec@samba.org>
Sat, 12 Feb 2011 18:50:55 +0000 (19:50 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 12 19:50:55 CET 2011 on sn-devel-104

lib/tdb/common/summary.c

index 29959f9e5f32a2be765a07a2d049a8d266493843..da1ec2b739d8650fca60a9269a3ad04a2684adb6 100644 (file)
@@ -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;