]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-login/test-login.c
sd-login: sd_get_machine_names(): do not return -EINVAL when output parameter is...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 31 May 2017 15:12:32 +0000 (00:12 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 31 May 2017 23:22:38 +0000 (19:22 -0400)
commit76ed21e1e68493b60167fb746872d0dd11278bce
treeadd6a444d2b07286e6441fd69eab6f0106f39c95
parent2b5e92673d9ed864bb9dad1a7e816f093b75f8cb
sd-login: sd_get_machine_names(): do not return -EINVAL when output parameter is NULL

Other functions in sd-login generally allow the output parameter to be NULL, in
which case only the number of items that would be stored in the array is returned.
Be nice and do the same here.
src/libsystemd/sd-login/sd-login.c
src/libsystemd/sd-login/test-login.c