aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/error/main.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-02-25 02:25:50 +0000
committerBruce Evans <bde@FreeBSD.org>1998-02-25 02:25:50 +0000
commit3cb5ecc8c275c327c591b55f859923faac7371d3 (patch)
tree8e90b7b1b1db7c7a8ba8263945d5fb51f429a572 /usr.bin/error/main.c
parent92ddd8c652bb08bb87e2683ddb7ac89e3534a928 (diff)
downloadsrc-3cb5ecc8c275c327c591b55f859923faac7371d3.tar.gz
src-3cb5ecc8c275c327c591b55f859923faac7371d3.zip
Fixed the usual type mismatch for a qsort comparison function.
Notes
Notes: svn path=/head/; revision=33811
Diffstat (limited to 'usr.bin/error/main.c')
-rw-r--r--usr.bin/error/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/error/main.c b/usr.bin/error/main.c
index 7c6ad1d60a1e..7ae8100dbd75 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;
/*