mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
logind: indicate that 'error' parameter is input by making it const
This commit is contained in:
parent
9926ec9115
commit
7a5d90b6a3
@ -912,7 +912,7 @@ static bool session_job_pending(Session *s) {
|
|||||||
(SESSION_CLASS_WANTS_SERVICE_MANAGER(s->class) && s->user->service_manager_job);
|
(SESSION_CLASS_WANTS_SERVICE_MANAGER(s->class) && s->user->service_manager_job);
|
||||||
}
|
}
|
||||||
|
|
||||||
int session_send_create_reply(Session *s, sd_bus_error *error) {
|
int session_send_create_reply(Session *s, const sd_bus_error *error) {
|
||||||
_cleanup_(sd_bus_message_unrefp) sd_bus_message *c = NULL;
|
_cleanup_(sd_bus_message_unrefp) sd_bus_message *c = NULL;
|
||||||
_cleanup_close_ int fifo_fd = -EBADF;
|
_cleanup_close_ int fifo_fd = -EBADF;
|
||||||
_cleanup_free_ char *p = NULL;
|
_cleanup_free_ char *p = NULL;
|
||||||
@ -968,7 +968,7 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
|
|||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
int session_send_upgrade_reply(Session *s, sd_bus_error *error) {
|
int session_send_upgrade_reply(Session *s, const sd_bus_error *error) {
|
||||||
_cleanup_(sd_bus_message_unrefp) sd_bus_message *c = NULL;
|
_cleanup_(sd_bus_message_unrefp) sd_bus_message *c = NULL;
|
||||||
assert(s);
|
assert(s);
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@ int session_send_changed(Session *s, const char *properties, ...) _sentinel_;
|
|||||||
int session_send_lock(Session *s, bool lock);
|
int session_send_lock(Session *s, bool lock);
|
||||||
int session_send_lock_all(Manager *m, bool lock);
|
int session_send_lock_all(Manager *m, bool lock);
|
||||||
|
|
||||||
int session_send_create_reply(Session *s, sd_bus_error *error);
|
int session_send_create_reply(Session *s, const sd_bus_error *error);
|
||||||
int session_send_upgrade_reply(Session *s, sd_bus_error *error);
|
int session_send_upgrade_reply(Session *s, const sd_bus_error *error);
|
||||||
|
|
||||||
int bus_session_method_activate(sd_bus_message *message, void *userdata, sd_bus_error *error);
|
int bus_session_method_activate(sd_bus_message *message, void *userdata, sd_bus_error *error);
|
||||||
int bus_session_method_lock(sd_bus_message *message, void *userdata, sd_bus_error *error);
|
int bus_session_method_lock(sd_bus_message *message, void *userdata, sd_bus_error *error);
|
||||||
|
Loading…
Reference in New Issue
Block a user