diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-20 22:19:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-20 23:59:29 +0200 |
commit | 76752516633e5a1011a91e9982e622086bd7fba9 (patch) | |
tree | 7e1f48ceac2ad19d969ff7ea7da1c46e79577a7a /src/test/test-cgroup-mask.c | |
parent | 6133af603057b6f8c81d912fc773e3311805fafa (diff) | |
download | systemd-76752516633e5a1011a91e9982e622086bd7fba9.tar.gz systemd-76752516633e5a1011a91e9982e622086bd7fba9.tar.bz2 systemd-76752516633e5a1011a91e9982e622086bd7fba9.zip |
tree-wide: pass NULL arguments to manager_startup() directly, avoid declaring unneeded variables
Diffstat (limited to 'src/test/test-cgroup-mask.c')
-rw-r--r-- | src/test/test-cgroup-mask.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test-cgroup-mask.c b/src/test/test-cgroup-mask.c index 06fd567738..d65959edf1 100644 --- a/src/test/test-cgroup-mask.c +++ b/src/test/test-cgroup-mask.c @@ -17,8 +17,6 @@ static int test_cgroup_mask(void) { _cleanup_(rm_rf_physical_and_freep) char *runtime_dir = NULL; _cleanup_(manager_freep) Manager *m = NULL; Unit *son, *daughter, *parent, *root, *grandchild, *parent_deep; - FILE *serial = NULL; - FDSet *fdset = NULL; int r; r = enter_cgroup_subroot(); @@ -48,7 +46,7 @@ static int test_cgroup_mask(void) { m->default_tasks_max = (uint64_t) -1; assert_se(r >= 0); - assert_se(manager_startup(m, serial, fdset) >= 0); + assert_se(manager_startup(m, NULL, NULL) >= 0); /* Load units and verify hierarchy. */ assert_se(manager_load_startable_unit_or_warn(m, "parent.slice", NULL, &parent) >= 0); |