Bug#1078371: Type missmatch, does not work on all architectures
[Bastian Blank]
> qsort is called with "struct item **", so cmpaddr always gets "struct
> item *".
>
> | struct item **itemlist;
> | qsort(itemlist, n, sizeof(itemlist[0]), cmpaddr);
>
> But it interprets them as "const struct network *", not even as "const
> struct addr *" as the name might imply.
Hm, interesting. I tried modifying it to
qsort(itemlist, n, sizeof(itemlist[0]), cmpitemaddr);
but alas, did not really solve much.
--
Happy hacking
Petter Reinholdtsen
Reply to: