1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

solaris: dir: remove accidental dirent type reference

This commit is contained in:
Andy Green 2021-03-08 10:40:09 +00:00
parent e7a96a7175
commit 2123bfce25

View file

@ -131,7 +131,9 @@ lws_dir(const char *dirpath, void *user, lws_dir_callback_function cb)
}
for (i = 0; i < n; i++) {
#if !defined(__sun)
unsigned int type = namelist[i]->d_type;
#endif
if (strchr(namelist[i]->d_name, '~'))
goto skip;
lde.name = namelist[i]->d_name;