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

看板DFBSD_commit作者時間21年前 (2005/02/18 21:35), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
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
文章代碼(AID): #125Uy_00 (DFBSD_commit)
文章代碼(AID): #125Uy_00 (DFBSD_commit)