mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 15:53:51 +01:00
Debloat
...
This commit is contained in:
@@ -14,11 +14,8 @@ static uint32_t get_num_elements(const char* dirname, int type) {
|
||||
if(dirp == NULL)
|
||||
return 0;
|
||||
|
||||
while((entry = readdir(dirp)) != NULL)
|
||||
{
|
||||
if(entry->d_type == DT_DIR && type == DT_DIR)
|
||||
++num_elements;
|
||||
else if(entry->d_type == DT_REG && type == DT_REG)
|
||||
while((entry = readdir(dirp)) != NULL){
|
||||
if(entry->d_type == type)
|
||||
++num_elements;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user