Skip to content

Commit bf485f1

Browse files
committed
remove printed dirs from
1 parent f0fce90 commit bf485f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kfc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ list_palette(void)
9393

9494
while( (de = readdir(p.dr)) != NULL )
9595
{
96-
puts(de->d_name);
96+
if ( de->d_type == 8 )
97+
{
98+
puts(de->d_name);
99+
}
97100
}
98101

99102
closedir(p.dr);

0 commit comments

Comments
 (0)