Commit e9903f9d authored by Rémi Duraffort's avatar Rémi Duraffort

Fix calloc usage.

parent 29abf6f4
...@@ -355,7 +355,7 @@ static dbus_bool_t add_timeout( DBusTimeout *p_timeout, void *p_data ) ...@@ -355,7 +355,7 @@ static dbus_bool_t add_timeout( DBusTimeout *p_timeout, void *p_data )
intf_thread_t *p_intf = (intf_thread_t*) p_data; intf_thread_t *p_intf = (intf_thread_t*) p_data;
intf_sys_t *p_sys = (intf_sys_t*) p_intf->p_sys; intf_sys_t *p_sys = (intf_sys_t*) p_intf->p_sys;
timeout_info_t *p_info = calloc( sizeof( timeout_info_t ), 1 ); timeout_info_t *p_info = calloc( 1, sizeof( timeout_info_t ) );
p_info->i_remaining = dbus_timeout_get_interval( p_timeout ) * 1000;/* µs */ p_info->i_remaining = dbus_timeout_get_interval( p_timeout ) * 1000;/* µs */
p_info->p_timeout = p_timeout; p_info->p_timeout = p_timeout;
...@@ -724,7 +724,7 @@ static void Run ( intf_thread_t *p_intf ) ...@@ -724,7 +724,7 @@ static void Run ( intf_thread_t *p_intf )
vlc_mutex_lock( &p_sys->lock ); vlc_mutex_lock( &p_sys->lock );
int i_watches = vlc_array_count( p_sys->p_watches ); int i_watches = vlc_array_count( p_sys->p_watches );
struct pollfd *p_fds = calloc( sizeof( struct pollfd ), i_watches ); struct pollfd *p_fds = calloc( i_watches, sizeof( struct pollfd ) );
int i_fds = GetPollFds( p_intf, p_fds ); int i_fds = GetPollFds( p_intf, p_fds );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment