Commit 3ffaf884 authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

fix wrong comparison in test_dr_cmp for ca_system_t

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent dcfd2c70
...@@ -35,6 +35,6 @@ static int compare_dvbpsi_ca_system_t(const void *s1, const void *s2) ...@@ -35,6 +35,6 @@ static int compare_dvbpsi_ca_system_t(const void *s1, const void *s2)
{ {
const dvbpsi_ca_system_t *a = s1, *b = s2; const dvbpsi_ca_system_t *a = s1, *b = s2;
if(a->i_ca_system_id < b->i_ca_system_id) return -1; if(a->i_ca_system_id < b->i_ca_system_id) return -1;
else if(a->i_ca_system_id < b->i_ca_system_id) return 1; else if(a->i_ca_system_id > b->i_ca_system_id) return 1;
else return 0; else return 0;
} }
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