Remove non-standard use of d_type

This commit is contained in:
Jordan Bancino 2023-03-02 02:53:43 +00:00
parent d6f96757bc
commit f4838f8211

View file

@ -832,7 +832,7 @@ DbList(Db * db, size_t nArgs,...)
while ((file = readdir(files)))
{
size_t namlen = strlen(file->d_name);
if (file->d_type == DT_REG && namlen > 5)
if (namlen > 5)
{
int nameOffset = namlen - 5;