From: Arran Cudbard-Bell Date: Sat, 27 Jan 2018 00:01:23 +0000 (-0700) Subject: Fix talloc_list_get_type_abort when get_type_abort is disabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da4c1cc026cf260cd191db60ed096784d4719a13;p=thirdparty%2Ffreeradius-server.git Fix talloc_list_get_type_abort when get_type_abort is disabled --- diff --git a/src/include/talloc.h b/src/include/talloc.h index 42d15b13c33..87ef8710492 100644 --- a/src/include/talloc.h +++ b/src/include/talloc.h @@ -90,7 +90,7 @@ static inline void *_talloc_list_get_type_abort(void *head, size_t offset, char return head; } #else -# define talloc_list_get_type_abort(_head, _type) +# define talloc_list_get_type_abort(_head, _type) (_type *)(_head) #endif /*