cvs commit: src/usr.bin/find Makefile find.c function.c ls.c main.c misc.c

Joerg Sonnenberger joerg at britannica.bec.de
Sun Feb 13 23:56:16 PST 2005


On Sun, Feb 13, 2005 at 04:39:04PM -0800, Chris Pressey wrote:
>   - Use explicit cast when calling fts_open().

@@ -175,7 +175,9 @@ find_execute(PLAN *plan, char *paths[])
        PLAN *p;
        int rval;

-       tree = fts_open(paths, ftsoptions, (issort ? find_compare : NULL));
+       tree = fts_open(paths, ftsoptions,
+           (int (*)(const FTSENT **, const FTSENT **))
+           (issort ? find_compare : NULL));
        if (tree == NULL)
                err(1, "ftsopen");

Can you fix the prototype of find_compare instead?

Joerg





More information about the Commits mailing list