[pulseaudio-discuss] [PATCH 7/8] Fix pa_object_new macro (missing close paren)

Tanu Kaskinen tanuk at iki.fi
Sun Aug 12 12:18:58 UTC 2018


On Mon, 2018-07-16 at 20:25 -0400, Yclept Nemo wrote:
> ---
>  src/pulsecore/object.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/pulsecore/object.h b/src/pulsecore/object.h
> index b3d500e2..15e8365b 100644
> --- a/src/pulsecore/object.h
> +++ b/src/pulsecore/object.h
> @@ -37,7 +37,7 @@ struct pa_object {
>  };
>  
>  pa_object *pa_object_new_internal(size_t size, const char *type_id, bool (*check_type)(const char *type_id));
> -#define pa_object_new(type) ((type*) pa_object_new_internal(sizeof(type), type##_type_id, type##_check_type)
> +#define pa_object_new(type) ((type*) pa_object_new_internal(sizeof(type), type##_type_id, type##_check_type))
>  
>  #define pa_object_free ((void (*) (pa_object* _obj)) pa_xfree)

Thanks! Applied.

-- 
Tanu

https://www.patreon.com/tanuk
https://liberapay.com/tanuk


More information about the pulseaudio-discuss mailing list