]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: make sd_bus_is_{ready,open} accept NULL
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Apr 2021 12:59:10 +0000 (14:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Apr 2021 12:59:10 +0000 (14:59 +0200)
commit3bbb76f62123f59ad871bebd00fdcd3f0c974275
tree6a6d220f98d539fb73074be0207e3d9a6ef0f0c1
parenta73f8e9f32616ae87ea216f06d25c5277a57bcb6
sd-bus: make sd_bus_is_{ready,open} accept NULL

We didn't document this behaviour one way or another, so I think it's
OK to change. All callers do the NULL check before callling this to avoid
the assert warning, so it seems reasonable to do it internally.

sd_bus_can_send() is similar, but there we expressly say that an
error is returned on NULL, so I didn't change it.
man/sd_bus_is_open.xml
src/libsystemd/sd-bus/sd-bus.c