Hi, On Tue, Dec 21, 2010, Vinicius Costa Gomes wrote: > +void att_primary_free(struct att_primary *prim) > +{ > + g_free(prim); > +} <snip> > + g_slist_foreach(ctxt->primaries, (GFunc) att_primary_free, NULL); If you're gonna do typecasting to GFunc (something which btw should be avoided whenever possible) you might as well pass g_free directly and not create any dedicated function for it. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html