unix: remove scandir prototype workaround in fs.c
It's not necessary for newer OS X releases and I don't care enough about OpenBSD to squelch the warning.
This commit is contained in:
parent
60dd395a5b
commit
8d746ff72d
@ -187,11 +187,7 @@ static ssize_t uv__fs_read(uv_fs_t* req) {
|
||||
}
|
||||
|
||||
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
static int uv__fs_readdir_filter(struct dirent* dent) {
|
||||
#else
|
||||
static int uv__fs_readdir_filter(const struct dirent* dent) {
|
||||
#endif
|
||||
return strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user