This causes problems since we pass ``fake'' GObjects in to avl_find.
Since everything we store in the AVL tree are properly pointers to
GTypeModule, simple assignment should be perfectly fine.
static int modcmp(const void *a, const void *b, void *_data)
{
static int modcmp(const void *a, const void *b, void *_data)
{
- GTypeModule *ma = G_TYPE_MODULE(a);
- GTypeModule *mb = G_TYPE_MODULE(b);
+ const GTypeModule *ma = a;
+ const GTypeModule *mb = b;
return strcmp(ma->name, mb->name);
}
return strcmp(ma->name, mb->name);
}