[vlc-commits] satip: fix function prototypes, aliasing

Rémi Denis-Courmont git at videolan.org
Mon Jul 25 20:51:32 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 25 21:46:00 2016 +0300| [9ba3402f72432bc8c871b85364f2a637818cde0a] | committer: Rémi Denis-Courmont

satip: fix function prototypes, aliasing

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

 modules/access/satip.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/modules/access/satip.c b/modules/access/satip.c
index c8f2f79..f5034ca 100644
--- a/modules/access/satip.c
+++ b/modules/access/satip.c
@@ -53,8 +53,8 @@
 #define KEEPALIVE_INTERVAL 60
 #define KEEPALIVE_MARGIN 5
 
-static int satip_open(access_t *);
-static void satip_close(access_t *);
+static int satip_open(vlc_object_t *);
+static void satip_close(vlc_object_t *);
 
 #define BUFFER_TEXT N_("Receive buffer")
 #define BUFFER_LONGTEXT N_("UDP receive buffer size (bytes)")
@@ -613,7 +613,9 @@ static int satip_bind_ports(access_t *access)
     return 0;
 }
 
-static int satip_open(access_t *access) {
+static int satip_open(vlc_object_t *obj)
+{
+    access_t *access = (access_t *)obj;
     access_sys_t *sys;
     vlc_url_t url;
 
@@ -758,7 +760,9 @@ error:
     return VLC_EGENERIC;
 }
 
-static void satip_close(access_t *access) {
+static void satip_close(vlc_object_t *obj)
+{
+    access_t *access = (access_t *)obj;
     access_sys_t *sys = access->p_sys;
 
     if (sys->thread) {



More information about the vlc-commits mailing list