diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-31 17:03:50 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-31 18:00:52 +0100 |
commit | bea1a01310efdf51b8c609a300d49bf5c25509c3 (patch) | |
tree | 763924b96caa50af59368c5a34d5f3c56c7f6ed0 /src/core | |
parent | fc03c536538cd5fb29f42eb4a6920f13a9a98e54 (diff) | |
download | systemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.tar.gz systemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.tar.bz2 systemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.zip |
strv: wrap strv_new() in a macro so that NULL sentinel is implicit
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/service.c | 2 | ||||
-rw-r--r-- | src/core/slice.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/service.c b/src/core/service.c index 2a36cc03f3..f6f3ecc0e6 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -1225,7 +1225,7 @@ static int service_collect_fds( return -ENOMEM; rfds[0] = s->socket_fd; - rfd_names = strv_new("connection", NULL); + rfd_names = strv_new("connection"); if (!rfd_names) return -ENOMEM; diff --git a/src/core/slice.c b/src/core/slice.c index a8bdbebe4b..74d056f7bc 100644 --- a/src/core/slice.c +++ b/src/core/slice.c @@ -124,7 +124,7 @@ static int slice_load_root_slice(Unit *u) { if (!u->description) u->description = strdup("Root Slice"); if (!u->documentation) - u->documentation = strv_new("man:systemd.special(7)", NULL); + u->documentation = strv_new("man:systemd.special(7)"); return 1; } @@ -147,7 +147,7 @@ static int slice_load_system_slice(Unit *u) { if (!u->description) u->description = strdup("System Slice"); if (!u->documentation) - u->documentation = strv_new("man:systemd.special(7)", NULL); + u->documentation = strv_new("man:systemd.special(7)"); return 1; } |