From d6bfdcd044f01978ddffd5ee60f8875a80964ae5 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Wed, 14 Apr 2010 16:53:14 +0200 Subject: [PATCH] typedef va_arg function pointers to avoid compiler parse errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- src/modules/entry.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/entry.c b/src/modules/entry.c index 7ed2697b26..0834ff9adf 100644 --- a/src/modules/entry.c +++ b/src/modules/entry.c @@ -152,6 +152,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...) { va_list ap; int ret = 0; + typedef int(*int_fp_vlcobjectt)(vlc_object_t *) ; + typedef void(*void_fp_vlcobjectt)(vlc_object_t *); va_start (ap, propid); switch (propid) @@ -195,11 +197,11 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...) break; case VLC_MODULE_CB_OPEN: - module->pf_activate = va_arg (ap, int (*) (vlc_object_t *)); + module->pf_activate = va_arg (ap, int_fp_vlcobjectt); break; case VLC_MODULE_CB_CLOSE: - module->pf_deactivate = va_arg (ap, void (*) (vlc_object_t *)); + module->pf_deactivate = va_arg (ap, void_fp_vlcobjectt); break; case VLC_MODULE_NO_UNLOAD: -- 2.39.2