s3-lib: Fix %G substitution for domain users in smbd
[gd/samba-autobuild/.git] / source3 / lib / tallocmsg.c
index 3cfd118d21cb811c7e29f52fd172b845a473c29f..9a0ce8ada18f324f991f33a457936bc12ae9b6a4 100644 (file)
@@ -17,6 +17,7 @@
 */
 
 #include "includes.h"
+#include "messages.h"
 
 /**
  * @file tallocmsg.c
@@ -64,7 +65,7 @@ static void msg_pool_usage_helper(const void *ptr, int depth, int max_depth, int
                               (unsigned long)talloc_total_blocks(ptr),
                               talloc_reference_count(ptr),
                               MIN(50, talloc_get_size(ptr)),
-                              (char *)ptr);
+                              (const char *)ptr);
                return;
        }