diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-12-07 12:52:58 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-12-15 22:50:00 +0100 |
commit | af3b864d76cf916a026b7877099791811b348fdf (patch) | |
tree | 40db7161280edc4dcc24b8a0cd20514f45a3ea1f /src/shared/numa-util.c | |
parent | tree-wide: make FOREACH_DIRENT_ALL define the iterator variable (diff) | |
download | systemd-af3b864d76cf916a026b7877099791811b348fdf.tar.xz systemd-af3b864d76cf916a026b7877099791811b348fdf.zip |
Define FOREACH_DIRENT through FOREACH_DIRENT_ALL
As in the previous commit, 'de' is used as the iterator variable name.
Diffstat (limited to 'src/shared/numa-util.c')
-rw-r--r-- | src/shared/numa-util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shared/numa-util.c b/src/shared/numa-util.c index 644b0bde5b..4f757f0b55 100644 --- a/src/shared/numa-util.c +++ b/src/shared/numa-util.c @@ -128,7 +128,6 @@ int numa_to_cpu_set(const NUMAPolicy *policy, CPUSet *ret) { static int numa_max_node(void) { _cleanup_closedir_ DIR *d = NULL; - struct dirent *de; int r, max_node = 0; d = opendir("/sys/devices/system/node"); |