[vlc-commits] file: remove redundant casts
Rémi Denis-Courmont
git at videolan.org
Wed Apr 19 19:48:40 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:23:50 2017 +0300| [f488a9d89ad3b52c9c3b4788be1a1297d602f019] | committer: Rémi Denis-Courmont
file: remove redundant casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f488a9d89ad3b52c9c3b4788be1a1297d602f019
---
modules/access/file.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index 87bb60e0dd..20cbb9401e 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -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
More information about the vlc-commits
mailing list