Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jun 1998 00:27:38 +0900
From:      SANETO Takanori <sanewo@ba2.so-net.ne.jp>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        current@FreeBSD.ORG
Subject:   Re: top -osize 
Message-ID:  <199805311527.AAA00170@sanewo.ba2.so-net.ne.jp>
In-Reply-To: wollman@khavrinen.lcs.mit.edu's message of Sun, 31 May 1998 10:53:51 -0400. <199805311453.KAA18088@khavrinen.lcs.mit.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199805311453.KAA18088@khavrinen.lcs.mit.edu> 
	Garrett Wollman <wollman@khavrinen.lcs.mit.edu>  said:
><<On 31 May 1998 19:55:28 +0900, Takanori Saneto <sanewo@ba2.so-net.ne.jp> said:
>
>>  int
>> -proc_compare(pp1, pp2)
>> +compare_cpu(pp1, pp2)
> 
>>  struct proc **pp1;
>>  struct proc **pp2;
>
>qsort(3) comparison functions take arguments of type `const void *',
>not `struct proc **'.

Yes, you are right.

My patch does not change the way comparison functions being (not)
prototyped.

In contrib/top/top.c:

>#ifdef ORDER
>extern int (*proc_compares[])();
>#else
>extern int proc_compare();
>#endif

Is it time to create a patch to make them prototyped and send it to
the maintainer of ``top''?
-- 
さねを <URL:mailto:sanewo@ba2.so-net.ne.jp>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805311527.AAA00170>