[vlc-commits] events: remove bogus return value
Rémi Denis-Courmont
git at videolan.org
Mon May 15 23:35:17 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 16 00:32:18 2017 +0300| [61727d29da43372315bf7e08b3a1702e7e445af0] | committer: Rémi Denis-Courmont
events: remove bogus return value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61727d29da43372315bf7e08b3a1702e7e445af0
---
include/vlc_events.h | 2 +-
src/misc/events.c | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/include/vlc_events.h b/include/vlc_events.h
index d4219f1dec..6a508289b5 100644
--- a/include/vlc_events.h
+++ b/include/vlc_events.h
@@ -186,7 +186,7 @@ typedef void ( *vlc_event_callback_t )( const vlc_event_t *, void * );
* p_obj points to the object that owns the event manager, and from
* which events are sent
*/
-int vlc_event_manager_init( vlc_event_manager_t * p_em, void * p_obj );
+void vlc_event_manager_init( vlc_event_manager_t * p_em, void * p_obj );
/*
* Destroy
diff --git a/src/misc/events.c b/src/misc/events.c
index 59d97669fd..508b4c5983 100644
--- a/src/misc/events.c
+++ b/src/misc/events.c
@@ -83,7 +83,7 @@ group_contains_listener( vlc_event_listeners_group_t * group,
* necessarily a vlc_object_t (an input_item_t is not a vlc_object_t
* for instance).
*/
-int vlc_event_manager_init( vlc_event_manager_t * p_em, void * p_obj )
+void vlc_event_manager_init( vlc_event_manager_t * p_em, void * p_obj )
{
p_em->p_obj = p_obj;
vlc_mutex_init( &p_em->object_lock );
@@ -98,8 +98,6 @@ int vlc_event_manager_init( vlc_event_manager_t * p_em, void * p_obj )
for( size_t i = 0; i < ARRAY_SIZE(p_em->events); i++ )
ARRAY_INIT( p_em->events[i].listeners );
-
- return VLC_SUCCESS;
}
/**
More information about the vlc-commits
mailing list