comparison src/similar.c @ 1003:4bfee4a63f86

const gpointer -> gconstpointer.
author zas_
date Wed, 27 Aug 2008 16:40:21 +0000
parents 3096a47232ec
children 1646720364cf
comparison
equal deleted inserted replaced
1002:3096a47232ec 1003:4bfee4a63f86
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 gpointer a, const gpointer b) 71 static gint image_sim_channel_eq_sort_cb(gconstpointer a, gconstpointer b)
72 { 72 {
73 gint *pa = (gpointer)a; 73 gint *pa = (gpointer)a;
74 gint *pb = (gpointer)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;