summaryrefslogtreecommitdiff
path: root/lib/talloc/talloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/talloc/talloc.h')
-rw-r--r--lib/talloc/talloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h
index edd9b8ae88..4adc206d12 100644
--- a/lib/talloc/talloc.h
+++ b/lib/talloc/talloc.h
@@ -720,7 +720,7 @@ void talloc_set_type(const char *ptr, #type);
*
* @return The properly casted pointer given by ptr, NULL on error.
*/
-void *talloc_get_name(const void *ptr, #type);
+type *talloc_get_type(const void *ptr, #type);
#else
#define talloc_set_type(ptr, type) talloc_set_name_const(ptr, #type)
#define talloc_get_type(ptr, type) (type *)talloc_check_name(ptr, #type)