summaryrefslogtreecommitdiffstats
path: root/usr.bin/makewhatis
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-01-24 12:35:36 +0000
committerkib <kib@FreeBSD.org>2010-01-24 12:35:36 +0000
commit9fefaa1da5ac95af3adaeb90fa4952d512222d64 (patch)
treec96ffe7ab80950945f7669f3be0d541f0c85f20d /usr.bin/makewhatis
parenta17ffd5a15a2429e6cad1620e5325e74c383db5d (diff)
downloadFreeBSD-src-9fefaa1da5ac95af3adaeb90fa4952d512222d64.zip
FreeBSD-src-9fefaa1da5ac95af3adaeb90fa4952d512222d64.tar.gz
Merge scandir(3) interface update to stable/8.
MFC r201512: Modernize scandir(3) and alphasort(3) interfaces according to the IEEE Std 1003.1-2008. MFC r201602: Move scandir(3) and alphasort(3) into XSI namespace. MFC r201604: Use thunks to adapt alphasort-like interface to the comparision function required by qsort() and qsort_r(). MFC r202556 (by ache): Use strcoll() in opendir() and alphasort(). Remove some comments. MFC r202572 (by ache): Revert to using strcmp() for opendir(). MFC r202677 (by ache): Style. MFC r202679 (by ache): Style: rename internal function to opendir_compar(). MFC r202691 (by ache): For alphasort(3) add reference to strcoll(3). MFC r202693 (by ache): Style: reword comment.
Diffstat (limited to 'usr.bin/makewhatis')
-rw-r--r--usr.bin/makewhatis/makewhatis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/makewhatis/makewhatis.c b/usr.bin/makewhatis/makewhatis.c
index 6b2dce4..f2ae370 100644
--- a/usr.bin/makewhatis/makewhatis.c
+++ b/usr.bin/makewhatis/makewhatis.c
@@ -879,9 +879,9 @@ process_section(char *section_dir)
* Returns whether the directory entry is a man page section.
*/
static int
-select_sections(struct dirent *entry)
+select_sections(const struct dirent *entry)
{
- char *p = &entry->d_name[3];
+ const char *p = &entry->d_name[3];
if (strncmp(entry->d_name, "man", 3) != 0)
return 0;
OpenPOWER on IntegriCloud