Skip to content
Snippets Groups Projects
Commit 779c87ea authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

ts: fix invalid casts

parent 01c4cd0f
No related branches found
No related tags found
No related merge requests found
......@@ -64,14 +64,16 @@ void ts_pid_list_Release( demux_t *p_demux, ts_pid_list_t *p_list )
struct searchkey
{
int16_t i_pid;
ts_pid_t **pp_last;
ts_pid_t *const *pp_last;
};
static int ts_bsearch_searchkey_Compare( void *key, void *other )
static int ts_bsearch_searchkey_Compare( const void *key, const void *other )
{
struct searchkey *p_key = (struct searchkey *) key;
ts_pid_t *p_pid = *((ts_pid_t **) other);
p_key->pp_last = (ts_pid_t **) other;
struct searchkey *p_key = (void *)key;
ts_pid_t *const *pp_pid = other;
ts_pid_t *p_pid = *pp_pid;
p_key->pp_last = other;
return ( p_key->i_pid >= p_pid->i_pid ) ? p_key->i_pid - p_pid->i_pid : -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment