chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
commite9eacf18de0e1fe360469958095d9e22bc7b36b2
treecd65909d6a936a510a647ef240c38aa279fc19b4
parent18b9ec874ae92e1b9b7daf91eee8b378a314f92a
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/libelogind/sd-login/sd-login.c
src/libelogind/sd-login/test-login.c