[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 via email to