From 9c834cd5093fc2159456b0f7a4c77d88dad08803 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 25 Feb 1998 02:29:58 +0000 Subject: Added a prototype for a qsort comparision function and fixed the usual type mismatch uncovered by this. --- usr.bin/error/filter.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/error/filter.c b/usr.bin/error/filter.c index bbcd5b6..1b82cfd 100644 --- a/usr.bin/error/filter.c +++ b/usr.bin/error/filter.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)filter.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: filter.c,v 1.2 1997/11/03 07:44:06 charnier Exp $"; #endif /* not lint */ #include @@ -57,7 +57,7 @@ char *lint_libs[] = { 0 }; -int lexsort(); +int lexsort __P((const void *, const void *)); /* * Read the file ERRORNAME of the names of functions in lint @@ -128,9 +128,10 @@ getignored(auxname) #endif } -int lexsort(cpp1, cpp2) - char **cpp1, **cpp2; +int lexsort(vcpp1, vcpp2) + const void *vcpp1, *vcpp2; { + char * const *cpp1 = vcpp1, * const *cpp2 = vcpp2; return(strcmp(*cpp1, *cpp2)); } -- cgit v1.1