[MPlayer-cvslog] r19203 - trunk/subreader.c

reynaldo subversion at mplayerhq.hu
Thu Jul 27 20:15:35 CEST 2006


Author: reynaldo
Date: Thu Jul 27 20:15:35 2006
New Revision: 19203

Modified:
   trunk/subreader.c

Log:
corrects some casts that previously discarded the const qualifier. Patch by Stefan Huehner, stefan AT Huehner-org

Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	(original)
+++ trunk/subreader.c	Thu Jul 27 20:15:35 2006
@@ -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);
     }
 }
 



More information about the MPlayer-cvslog mailing list