summaryrefslogtreecommitdiffstats
path: root/src/test/test-process-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-23 21:29:40 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-23 21:29:40 +0200
commitf565b8676fbdab115c068a57952f53a88e50f849 (patch)
tree394358410989faad9a9b640086e7df3e51954786 /src/test/test-process-util.c
parentdirent-util: introduce readdir_ensure_type() (diff)
downloadsystemd-f565b8676fbdab115c068a57952f53a88e50f849.tar.xz
systemd-f565b8676fbdab115c068a57952f53a88e50f849.zip
dirent-util: use readdir_ensure_type() in readdir_no_dot() and FOREACH_DIRENT()
Diffstat (limited to 'src/test/test-process-util.c')
-rw-r--r--src/test/test-process-util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/test-process-util.c b/src/test/test-process-util.c
index ca21eadaba..576a9a8753 100644
--- a/src/test/test-process-util.c
+++ b/src/test/test-process-util.c
@@ -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;