Subject: Re: qsort problems
To: None <christos@deshaw.com, netbsd-help@NetBSD.ORG>
From: Peter Seebach <seebs@solon.com>
List: netbsd-help
Date: 11/08/1996 22:41:52
>In article <199611070727.RAA01792@hotdog.ping.net.au> wulf@ping.net.au (Berndt Josef Wulf) writes:
>>int comparison( TTY_NODE **arg1, TTY_NODE **arg2 )

>change it to:
>int comparison(const void *v1, const void *v2)
>{
>	TTY_NODE **arg1 = v1, **arg2 = v2;

Very, very close; unfortunately, you need to cast away the const here,
or have those be "const TTY_NODE **"'s.

(This is why I dislike const.)

-s
s