Merge pull request #20004 from yuwata/readdir-ensure-type

dirent-util: introduce readdir_ensure_type()
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-06-24 15:11:06 +02:00
committed by GitHub
16 changed files with 20 additions and 42 deletions
-2
View File
@@ -126,8 +126,6 @@ static void test_get_process_cmdline(void) {
FOREACH_DIRENT(de, d, return) {
pid_t pid;
dirent_ensure_type(d, de);
if (de->d_type != DT_DIR)
continue;