chiark / gitweb /
bus: replace ENOSYS return codes with EBADR/ENOTSUP
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Dec 2014 23:22:53 +0000 (18:22 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Dec 2014 23:39:52 +0000 (18:39 -0500)
commitcaffa4ef700fdd0eadd6c0b2ef9925611672a1bc
tree50e7ab86b7bb89d9472b3e29abaa6eb03b41c32a
parentb52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7ca
bus: replace ENOSYS return codes with EBADR/ENOTSUP

ENOSYS is used to signify compiled-out functionality. Using it for
different kinds of error is misleading.

For BUS_ERROR_SLEEP_VERB_NOT_SUPPORTED, logind-action.c uses ENOTSUP
already, so changing it to ENOTSUP makes the dbus and action paths
behave the same.
src/libsystemd/sd-bus/bus-common-errors.c