Mercurial > mplayer.hg
changeset 19198:b137cea2650e
corrects some casts that previously discarded the const qualifier. Patch by Stefan Huehner, stefan AT Huehner-org
author | reynaldo |
---|---|
date | Thu, 27 Jul 2006 18:15:35 +0000 |
parents | 7472697bef28 |
children | ff3ed01e9043 |
files | subreader.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/subreader.c Thu Jul 27 17:45:59 2006 +0000 +++ b/subreader.c Thu Jul 27 18:15:35 2006 +0000 @@ -1823,12 +1823,12 @@ static int compare_sub_priority(const void *a, const void *b) { - if (((subfn*)a)->priority > ((subfn*)b)->priority) { + if (((const subfn*)a)->priority > ((const subfn*)b)->priority) { return -1; - } else if (((subfn*)a)->priority < ((subfn*)b)->priority) { + } else if (((const subfn*)a)->priority < ((const subfn*)b)->priority) { return 1; } else { - return strcoll(((subfn*)a)->fname, ((subfn*)b)->fname); + return strcoll(((const subfn*)a)->fname, ((const subfn*)b)->fname); } }