comparison src/similar.c @ 1002:3096a47232ec

Use gpointer instead of void *.
author zas_
date Tue, 26 Aug 2008 22:37:18 +0000
parents 4fe8f9656107
children 4bfee4a63f86
comparison
equal deleted inserted replaced
1001:d22e21bfd2a3 1002:3096a47232ec
66 void image_sim_free(ImageSimilarityData *sd) 66 void image_sim_free(ImageSimilarityData *sd)
67 { 67 {
68 g_free(sd); 68 g_free(sd);
69 } 69 }
70 70
71 static gint image_sim_channel_eq_sort_cb(const void *a, const void *b) 71 static gint image_sim_channel_eq_sort_cb(const gpointer a, const gpointer b)
72 { 72 {
73 gint *pa = (void *)a; 73 gint *pa = (gpointer)a;
74 gint *pb = (void *)b; 74 gint *pb = (gpointer)b;
75 if (pa[1] < pb[1]) return -1; 75 if (pa[1] < pb[1]) return -1;
76 if (pa[1] > pb[1]) return 1; 76 if (pa[1] > pb[1]) return 1;
77 return 0; 77 return 0;
78 } 78 }
79 79