]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: use the return value from sockaddr_un_set_path()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Mar 2020 14:51:31 +0000 (15:51 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Mar 2020 14:55:44 +0000 (15:55 +0100)
commitf36a9d5909019845d131e0c6c61f22b1d1956ca1
tree7023bf19207e1903da61bef6a87d3a4fa2317178
parent0f1886872362135467d7219e08fa7120dd73bee5
tree-wide: use the return value from sockaddr_un_set_path()

It fully initializes the address structure, so no need for pre-initialization,
and also returns the length of the address, so no need to recalculate using
SOCKADDR_UN_LEN().

socklen_t is unsigned, so let's not use an int for it. (It doesn't matter, but
seems cleaner and more portable to not assume anything about the type.)
15 files changed:
src/core/dbus.c
src/core/execute.c
src/core/manager.c
src/journal/journald-native.c
src/journal/journald-server.c
src/journal/journald-stream.c
src/journal/journald-syslog.c
src/libsystemd/sd-bus/test-bus-watch-bind.c
src/libsystemd/sd-daemon/sd-daemon.c
src/login/pam_systemd.c
src/shared/ask-password-api.c
src/shared/varlink.c
src/socket-proxy/socket-proxyd.c
src/tty-ask-password-agent/tty-ask-password-agent.c
src/userdb/userdbctl.c