summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2016-12-16 04:45:04 +0000
committermrg <mrg@NetBSD.org>2016-12-16 04:45:04 +0000
commit032681b78f7e54f2c02c5213a67e907d332a8f72 (patch)
tree1d902a680984c6f8007eb889292512f7cb3d2c29 /include
parenta990c924c84b82ea58f21924f1704b6f2d14828f (diff)
scandir/alphasort take "const struct dirent **" not "const void *" in
modern unix. since we claim to be 'IEEE Std 1003.1-2008', make it so.
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 78ac096f6c4..cfe595dec80 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,4 @@
-/* $NetBSD: dirent.h,v 1.35 2012/07/30 23:11:13 yamt Exp $ */
+/* $NetBSD: dirent.h,v 1.36 2016/12/16 04:45:04 mrg Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -109,10 +109,12 @@ long telldir(DIR *);
DIR *fdopendir(int);
DIR *__opendir2(const char *, int) __RENAME(__opendir230);
int scandir(const char *, struct dirent ***,
- int (*)(const struct dirent *), int (*)(const void *, const void *))
+ int (*)(const struct dirent *), int (*)(const struct dirent **,
+ const struct dirent **))
__RENAME(__scandir30);
int getdents(int, char *, size_t) __RENAME(__getdents30);
-int alphasort(const void *, const void *) __RENAME(__alphasort30);
+int alphasort(const struct dirent **, const struct dirent **)
+ __RENAME(__alphasort30);
#endif
#endif /* defined(_NETBSD_SOURCE) */
__END_DECLS