Fix output value of sd_seat_get_sessions() and drop FOREACH_WORD use
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Jul 2020 10:43:07 +0000 (12:43 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Sep 2020 07:34:54 +0000 (09:34 +0200)
commitaa3b40c3f98f28312967b3f9ba1f353efd9c9873
tree35b94ce77cee8306399346ee27011cf51a8c18e1
parent87a4d416e5126b6fb2528ae192a6a6a8033539ce
Fix output value of sd_seat_get_sessions() and drop FOREACH_WORD use

sd_seat_get_sessions() would return 0 in the 'n_uids' (now 'ret_n_uids') output
parameter when 'uid' (now 'ret_uids') was passed as NULL.

While at it, drop FOREACH_WORD() use.

Also use any whitespace as separator. In practice this shouldn't matter, since
logind always uses spaces, but it seems nicer to not specify this explicitly,
and the default is more flexible.
man/sd_seat_get_active.xml
src/libsystemd/sd-login/sd-login.c
src/systemd/sd-login.h