[PATCH] some Mac OS X fixes
Mike Frysinger
vapier at gentoo.org
Fri Feb 17 18:28:25 UTC 2006
On Friday 17 February 2006 11:44, Devin Bayer wrote:
> > > --- libbb/run_parts.c (revision 14086)
> > > +++ libbb/run_parts.c (working copy)
> > > +#ifdef __APPLE__
> > > +static int valid_name(struct dirent *d)
> > > +#else
> > > static int valid_name(const struct dirent *d)
> > > -{
> > > +#endif
> > > + {
> >
> > Why?
>
> To avoid:
>
> libbb/run_parts.c:66: warning: passing argument 3 of 'scandir' from
> incompatible pointer type
>
> because on apple:
>
> scandir(const char *dirname, struct dirent ***namelist,
> int (*select)(struct dirent *),
> int (*compar)(const void *, const void *));
i'd say live with it rather than making the code look fugly ... it's a
harmless warning in this case
-mike
More information about the busybox
mailing list