diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-15 08:14:53 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-19 00:10:29 +0100 |
commit | 03677889f0ef42cdc534bf3b31265a054b20a354 (patch) | |
tree | 53caa0977a8afc5d0ee90e038ffd566e9e22451f /src/shutdown/test-umount.c | |
parent | various: make parse_env_file error handling the same in various places (diff) | |
download | systemd-03677889f0ef42cdc534bf3b31265a054b20a354.tar.xz systemd-03677889f0ef42cdc534bf3b31265a054b20a354.zip |
list: declare iterator of LIST_FOREACH() in the loop
Diffstat (limited to 'src/shutdown/test-umount.c')
-rw-r--r-- | src/shutdown/test-umount.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/shutdown/test-umount.c b/src/shutdown/test-umount.c index 56fcff05b1..c92105b62b 100644 --- a/src/shutdown/test-umount.c +++ b/src/shutdown/test-umount.c @@ -12,7 +12,6 @@ static void test_mount_points_list_one(const char *fname) { _cleanup_(mount_points_list_free) LIST_HEAD(MountPoint, mp_list_head); _cleanup_free_ char *testdata_fname = NULL; - MountPoint *m; log_info("/* %s(\"%s\") */", __func__, fname ?: "/proc/self/mountinfo"); @@ -43,7 +42,6 @@ TEST(mount_points_list) { static void test_swap_list_one(const char *fname) { _cleanup_(mount_points_list_free) LIST_HEAD(MountPoint, mp_list_head); _cleanup_free_ char *testdata_fname = NULL; - MountPoint *m; int r; log_info("/* %s(\"%s\") */", __func__, fname ?: "/proc/swaps"); |