file: remove redundant casts
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 19 Apr 2017 17:23:50 +0000 (20:23 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 19 Apr 2017 17:46:56 +0000 (20:46 +0300)
modules/access/file.c

index 87bb60e..20cbb94 100644 (file)
@@ -329,13 +329,13 @@ static int FileControl( 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 = (p_access->pf_seek != NoSeek);
             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 = p_sys->b_pace_control;
             break;
 
@@ -350,7 +350,7 @@ static int FileControl( access_t *p_access, int i_query, va_list args )
         }
 
         case STREAM_GET_PTS_DELAY:
-            pi_64 = (int64_t*)va_arg( args, int64_t * );
+            pi_64 = va_arg( args, int64_t * );
             if (IsRemote (p_sys->fd, p_access->psz_filepath))
                 *pi_64 = var_InheritInteger (p_access, "network-caching");
             else