[vlc-commits] modules: fix vlc_module_(un)load() macros

Rémi Denis-Courmont git at videolan.org
Sun Nov 18 16:57:18 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 18 14:00:35 2018 +0200| [2f018ef307543c4d2b1b046930644c9066369168] | committer: Rémi Denis-Courmont

modules: fix vlc_module_(un)load() macros

There may be zero optional arguments there.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f018ef307543c4d2b1b046930644c9066369168
---

 include/vlc_modules.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/vlc_modules.h b/include/vlc_modules.h
index b509927beb..796fdd578a 100644
--- a/include/vlc_modules.h
+++ b/include/vlc_modules.h
@@ -37,12 +37,12 @@ typedef void (*vlc_deactivate_t)(void *func, va_list args);
  *****************************************************************************/
 
 VLC_API module_t * vlc_module_load( vlc_object_t *obj, const char *cap, const char *name, bool strict, vlc_activate_t probe, ... ) VLC_USED;
-#define vlc_module_load(o,c,n,s,...) \
-        vlc_module_load(VLC_OBJECT(o),c,n,s,__VA_ARGS__)
+#define vlc_module_load(o, c, n, ...) \
+        vlc_module_load(VLC_OBJECT(o), c, n, __VA_ARGS__)
 VLC_API void vlc_module_unload( vlc_object_t *obj, module_t *,
                                 vlc_deactivate_t deinit, ... );
-#define vlc_module_unload(o,m,d,...) \
-        vlc_module_unload(VLC_OBJECT(o),m,d,__VA_ARGS__)
+#define vlc_module_unload(o, m, ...) \
+        vlc_module_unload(VLC_OBJECT(o), m, __VA_ARGS__)
 
 VLC_API module_t * module_need( vlc_object_t *, const char *, const char *, bool ) VLC_USED;
 #define module_need(a,b,c,d) module_need(VLC_OBJECT(a),b,c,d)



More information about the vlc-commits mailing list