summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-25 02:29:58 +0000
committerbde <bde@FreeBSD.org>1998-02-25 02:29:58 +0000
commit9c834cd5093fc2159456b0f7a4c77d88dad08803 (patch)
tree80a049a59c5491f90c017d6c5b4bccb63575db98 /usr.bin
parentbd4014b7c04f4113ac2ce93916adf4c205202d1c (diff)
downloadFreeBSD-src-9c834cd5093fc2159456b0f7a4c77d88dad08803.zip
FreeBSD-src-9c834cd5093fc2159456b0f7a4c77d88dad08803.tar.gz
Added a prototype for a qsort comparision function and fixed the usual
type mismatch uncovered by this.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/error/filter.c9
1 files changed, 5 insertions, 4 deletions
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 <sys/types.h>
@@ -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));
}
OpenPOWER on IntegriCloud