[vlc-commits] dbus: remove antilogy
Rémi Denis-Courmont
git at videolan.org
Sun Jul 23 16:54:07 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 17:11:04 2017 +0300| [2d40d070fd066f8692433caf219e9a0b9d993dbd] | committer: Rémi Denis-Courmont
dbus: remove antilogy
This avoids bogus return-type warnings.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d40d070fd066f8692433caf219e9a0b9d993dbd
---
modules/control/dbus/dbus_player.c | 12 ++++++------
modules/control/dbus/dbus_root.c | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/modules/control/dbus/dbus_player.c b/modules/control/dbus/dbus_player.c
index cb1e75fe57..02413a636c 100644
--- a/modules/control/dbus/dbus_player.c
+++ b/modules/control/dbus/dbus_player.c
@@ -555,9 +555,9 @@ DBUS_SIGNAL( SeekedSignal )
SIGNAL_SEND;
}
-#define PROPERTY_MAPPING_BEGIN if( 0 ) {}
+#define PROPERTY_MAPPING_BEGIN
#define PROPERTY_GET_FUNC( prop, signature ) \
- else if( !strcmp( psz_property_name, #prop ) ) { \
+ if( !strcmp( psz_property_name, #prop ) ) { \
if( !dbus_message_iter_open_container( &args, DBUS_TYPE_VARIANT, signature, &v ) ) \
return DBUS_HANDLER_RESULT_NEED_MEMORY; \
if( VLC_SUCCESS != Marshal##prop( p_this, &v ) ) { \
@@ -566,12 +566,12 @@ DBUS_SIGNAL( SeekedSignal )
} \
if( !dbus_message_iter_close_container( &args, &v ) ) \
return DBUS_HANDLER_RESULT_NEED_MEMORY; \
- }
+ } else
#define PROPERTY_SET_FUNC( prop ) \
- else if( !strcmp( psz_property_name, #prop ) ) { \
+ if( !strcmp( psz_property_name, #prop ) ) \
return prop##Set( p_conn, p_from, p_this ); \
- }
-#define PROPERTY_MAPPING_END else { return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; }
+ else
+#define PROPERTY_MAPPING_END return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
DBUS_METHOD( GetProperty )
{
diff --git a/modules/control/dbus/dbus_root.c b/modules/control/dbus/dbus_root.c
index c332883730..d663bc18cf 100644
--- a/modules/control/dbus/dbus_root.c
+++ b/modules/control/dbus/dbus_root.c
@@ -272,9 +272,9 @@ DBUS_METHOD( Raise )
REPLY_SEND;
}
-#define PROPERTY_MAPPING_BEGIN if( 0 ) {}
+#define PROPERTY_MAPPING_BEGIN
#define PROPERTY_GET_FUNC( prop, signature ) \
- else if( !strcmp( psz_property_name, #prop ) ) { \
+ if( !strcmp( psz_property_name, #prop ) ) { \
if( !dbus_message_iter_open_container( &args, DBUS_TYPE_VARIANT, signature, &v ) ) \
return DBUS_HANDLER_RESULT_NEED_MEMORY; \
if( VLC_SUCCESS != Marshal##prop( p_this, &v ) ) { \
@@ -283,12 +283,12 @@ DBUS_METHOD( Raise )
} \
if( !dbus_message_iter_close_container( &args, &v ) ) \
return DBUS_HANDLER_RESULT_NEED_MEMORY; \
- }
+ } else
#define PROPERTY_SET_FUNC( prop ) \
- else if( !strcmp( psz_property_name, #prop ) ) { \
+ if( !strcmp( psz_property_name, #prop ) ) \
return prop##Set( p_conn, p_from, p_this ); \
- }
-#define PROPERTY_MAPPING_END else { return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; }
+ else
+#define PROPERTY_MAPPING_END return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
DBUS_METHOD( GetProperty )
{
More information about the vlc-commits
mailing list