Browse Source

Change scandir()'s 'select' argument from

int (*)(struct dirent *)
to
int (*)(const struct dirent *)
to match POSIX.
ok millert@, ports check by naddy@
OPENBSD_5_3
guenther 12 years ago
parent
commit
2ca690c613
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/include/dirent.h

+ 2
- 2
src/include/dirent.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: dirent.h,v 1.28 2012/03/24 01:53:51 guenther Exp $ */
/* $OpenBSD: dirent.h,v 1.29 2012/11/29 02:15:44 guenther Exp $ */
/* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */
/*- /*-
@ -95,7 +95,7 @@ int readdir_r(DIR *__restrict, struct dirent *__restrict,
struct dirent **__restrict); struct dirent **__restrict);
#endif #endif
#if __POSIX_VISIBLE >= 200809 #if __POSIX_VISIBLE >= 200809
int scandir(const char *, struct dirent ***, int (*)(struct dirent *),
int scandir(const char *, struct dirent ***, int (*)(const struct dirent *),
int (*)(const struct dirent **, const struct dirent **)); int (*)(const struct dirent **, const struct dirent **));
int alphasort(const struct dirent **, const struct dirent **); int alphasort(const struct dirent **, const struct dirent **);
#elif __BSD_VISIBLE #elif __BSD_VISIBLE


Loading…
Cancel
Save