[vlc-commits] tcp: remove redundant casts

Rémi Denis-Courmont git at videolan.org
Wed Apr 19 19:49:25 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:31:07 2017 +0300| [fadd8ed5af27733b6f38687ebe609e1fb594d29f] | committer: Rémi Denis-Courmont

tcp: remove redundant casts

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

 modules/access/sftp.c | 8 ++++----
 modules/access/tcp.c  | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index 290ccd69dd..fc5e529787 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -489,18 +489,18 @@ static int Control( access_t* p_access, int i_query, va_list args )
     switch( i_query )
     {
     case STREAM_CAN_SEEK:
-        pb_bool = (bool*)va_arg( args, bool* );
+        pb_bool = va_arg( args, bool * );
         *pb_bool = true;
         break;
 
     case STREAM_CAN_FASTSEEK:
-        pb_bool = (bool*)va_arg( args, bool* );
+        pb_bool = va_arg( args, bool * );
         *pb_bool = false;
         break;
 
     case STREAM_CAN_PAUSE:
     case STREAM_CAN_CONTROL_PACE:
-        pb_bool = (bool*)va_arg( args, bool* );
+        pb_bool = va_arg( args, bool * );
         *pb_bool = true;
         break;
 
@@ -511,7 +511,7 @@ static int Control( access_t* p_access, int i_query, va_list args )
         break;
 
     case STREAM_GET_PTS_DELAY:
-        pi_64 = (int64_t*)va_arg( args, int64_t* );
+        pi_64 = va_arg( args, int64_t * );
         *pi_64 = INT64_C(1000)
                * var_InheritInteger( p_access, "network-caching" );
         break;
diff --git a/modules/access/tcp.c b/modules/access/tcp.c
index 89741b32f4..bb3a44676b 100644
--- a/modules/access/tcp.c
+++ b/modules/access/tcp.c
@@ -47,20 +47,20 @@ static int Control( access_t *p_access, int i_query, va_list args )
     {
         case STREAM_CAN_SEEK:
         case STREAM_CAN_FASTSEEK:
-            pb_bool = (bool*)va_arg( args, bool* );
+            pb_bool = va_arg( args, bool * );
             *pb_bool = false;
             break;
         case STREAM_CAN_PAUSE:
-            pb_bool = (bool*)va_arg( args, bool* );
+            pb_bool = va_arg( args, bool * );
             *pb_bool = true;    /* FIXME */
             break;
         case STREAM_CAN_CONTROL_PACE:
-            pb_bool = (bool*)va_arg( args, bool* );
+            pb_bool = va_arg( args, bool * );
             *pb_bool = true;    /* FIXME */
             break;
 
         case STREAM_GET_PTS_DELAY:
-            pi_64 = (int64_t*)va_arg( args, int64_t * );
+            pi_64 = va_arg( args, int64_t * );
             *pi_64 = INT64_C(1000)
                    * var_InheritInteger( p_access, "network-caching" );
             break;



More information about the vlc-commits mailing list