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:
Ben Noordhuis 2013-02-06 16:32:01 +01:00
parent 60dd395a5b
commit 8d746ff72d

View File

@ -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;
}