summaryrefslogtreecommitdiff
path: root/include/dirent.h
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-11-29 02:15:45 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-11-29 02:15:45 +0000
commit1e87be8757cbe08120f7c18840ffee4fb5ab557d (patch)
treea984d28d5f20f0b7adc6856d8dd43ecb96f18f7c /include/dirent.h
parent36563650e8f70470f880cd5c1a85e86cc4b105b5 (diff)
Change scandir()'s 'select' argument from
int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@
Diffstat (limited to 'include/dirent.h')
-rw-r--r--include/dirent.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dirent.h b/include/dirent.h
index e5c08235809..f5d90842893 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -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 $ */
/*-
@@ -95,7 +95,7 @@ int readdir_r(DIR *__restrict, struct dirent *__restrict,
struct dirent **__restrict);
#endif
#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 alphasort(const struct dirent **, const struct dirent **);
#elif __BSD_VISIBLE