--- src/usr.bin/find/find.c 2005/02/14 00:39:04 1.5 +++ src/usr.bin/find/find.c 2005/02/14 20:31:59 1.6 @@ -51,7 +51,7 @@ #include "find.h" -static int find_compare(const FTSENT * const *s1, const FTSENT * const *s2); +static int find_compare(const FTSENT **s1, const FTSENT **s2); /* * find_compare -- @@ -60,7 +60,7 @@ static int find_compare(const FTSENT * c * order within each directory. */ static int -find_compare(const FTSENT * const *s1, const FTSENT * const *s2) +find_compare(const FTSENT **s1, const FTSENT **s2) { return (strcoll((*s1)->fts_name, (*s2)->fts_name)); @@ -175,9 +175,7 @@ find_execute(PLAN *plan, char *paths[]) PLAN *p; int rval; - tree = fts_open(paths, ftsoptions, - (int (*)(const FTSENT **, const FTSENT **)) - (issort ? find_compare : NULL)); + tree = fts_open(paths, ftsoptions, issort ? find_compare : NULL); if (tree == NULL) err(1, "ftsopen");