[vlc-devel] [PATCH 1/3] vlc_services_discovery: don't return void
Steve Lhomme
robux4 at videolabs.io
Wed Jul 12 11:20:47 CEST 2017
Even though the compiler is OK with it.
---
include/vlc_services_discovery.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/vlc_services_discovery.h b/include/vlc_services_discovery.h
index 6f3dd77739..e4dfcd3985 100644
--- a/include/vlc_services_discovery.h
+++ b/include/vlc_services_discovery.h
@@ -157,7 +157,7 @@ VLC_API void vlc_sd_Destroy( services_discovery_t * );
static inline void services_discovery_AddItem(services_discovery_t *sd,
input_item_t *item)
{
- return sd->owner.item_added(sd, NULL, item, NULL);
+ sd->owner.item_added(sd, NULL, item, NULL);
}
/**
@@ -181,7 +181,7 @@ static inline void services_discovery_AddSubItem(services_discovery_t *sd,
input_item_t *parent,
input_item_t *item)
{
- return sd->owner.item_added(sd, parent, item, NULL);
+ sd->owner.item_added(sd, parent, item, NULL);
}
/**
@@ -195,7 +195,7 @@ static inline void services_discovery_AddItemCat(services_discovery_t *sd,
input_item_t *item,
const char *category)
{
- return sd->owner.item_added(sd, NULL, item, category);
+ sd->owner.item_added(sd, NULL, item, category);
}
/**
@@ -207,7 +207,7 @@ static inline void services_discovery_AddItemCat(services_discovery_t *sd,
static inline void services_discovery_RemoveItem(services_discovery_t *sd,
input_item_t *item)
{
- return sd->owner.item_removed(sd, item);
+ sd->owner.item_removed(sd, item);
}
/* SD probing */
--
2.12.1
More information about the vlc-devel
mailing list