forked from Telodendria/Telodendria
Remove non-standard use of d_type
This commit is contained in:
parent
d6f96757bc
commit
f4838f8211
1 changed files with 1 additions and 1 deletions
2
src/Db.c
2
src/Db.c
|
@ -832,7 +832,7 @@ DbList(Db * db, size_t nArgs,...)
|
||||||
while ((file = readdir(files)))
|
while ((file = readdir(files)))
|
||||||
{
|
{
|
||||||
size_t namlen = strlen(file->d_name);
|
size_t namlen = strlen(file->d_name);
|
||||||
if (file->d_type == DT_REG && namlen > 5)
|
if (namlen > 5)
|
||||||
{
|
{
|
||||||
int nameOffset = namlen - 5;
|
int nameOffset = namlen - 5;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue