diff options
author | bde <bde@FreeBSD.org> | 1998-02-25 02:25:50 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-02-25 02:25:50 +0000 |
commit | bd4014b7c04f4113ac2ce93916adf4c205202d1c (patch) | |
tree | 99393132b7ef817778c518ebc9a7544e6bed34c5 /usr.bin/error | |
parent | 8f1b16e6cce7377931ecce43f5a7dff7b95b2e6e (diff) | |
download | FreeBSD-src-bd4014b7c04f4113ac2ce93916adf4c205202d1c.zip FreeBSD-src-bd4014b7c04f4113ac2ce93916adf4c205202d1c.tar.gz |
Fixed the usual type mismatch for a qsort comparison function.
Diffstat (limited to 'usr.bin/error')
-rw-r--r-- | usr.bin/error/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/error/main.c b/usr.bin/error/main.c index 7c6ad1d..7ae8100 100644 --- a/usr.bin/error/main.c +++ b/usr.bin/error/main.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: main.c,v 1.3 1997/11/03 07:44:12 charnier Exp $"; #endif /* not lint */ #include <ctype.h> @@ -73,7 +73,7 @@ boolean terse = FALSE; /* Terse output */ char *suffixlist = ".*"; /* initially, can touch any file */ -int errorsort __P((Eptr *, Eptr *)); +int errorsort __P((const void *, const void *)); void forkvi __P((int, char **)); void try __P((char *, int, char **)); @@ -258,9 +258,10 @@ try(name, argc, argv) execvp(name, argv); } -int errorsort(epp1, epp2) - Eptr *epp1, *epp2; +int errorsort(vepp1, vepp2) + const void *vepp1, *vepp2; { + const Eptr *epp1 = vepp1, *epp2 = vepp2; reg Eptr ep1, ep2; int order; /* |