git » fp-git.git » commit 12e0964

added const in cmp to fix the cmp type compatible

author ecalot
2005-07-09 20:00:21 UTC
committer ecalot
2005-07-09 20:00:21 UTC
parent 50ee7fb160c52dc9ff11a553f3560f237b07e508

added const in cmp to fix the cmp type compatible

poprecog/poprecog.c +1 -1

diff --git a/poprecog/poprecog.c b/poprecog/poprecog.c
index 4857fae..8748c47 100644
--- a/poprecog/poprecog.c
+++ b/poprecog/poprecog.c
@@ -199,7 +199,7 @@ int cmptImage(const void *a, const void *b) {
 	return 0;
 }
 
-int cmptRecognized(void *a, void *b)
+int cmptRecognized(const void *a, const void *b)
 {
 	register int laa = ((tRecognized*)(a))->layer;
 	register int lab = ((tRecognized*)(b))->layer;