diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-bus/bus-creds.c | 2 | ||||
-rw-r--r-- | src/systemd/sd-bus.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-creds.c b/src/libsystemd-bus/bus-creds.c index 5575f73d86..52e55fc5e1 100644 --- a/src/libsystemd-bus/bus-creds.c +++ b/src/libsystemd-bus/bus-creds.c @@ -105,7 +105,7 @@ _public_ sd_bus_creds *sd_bus_creds_unref(sd_bus_creds *c) { return NULL; } -_public_ uint64_t sd_bus_creds_get_mask(sd_bus_creds *c) { +_public_ uint64_t sd_bus_creds_get_mask(const sd_bus_creds *c) { assert_return(c, 0); return c->mask; diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index 1134b58437..a6c29d4586 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -279,7 +279,7 @@ int sd_bus_query_sender_creds(sd_bus_message *call, uint64_t mask, sd_bus_creds int sd_bus_creds_new_from_pid(pid_t pid, uint64_t creds_mask, sd_bus_creds **ret); sd_bus_creds *sd_bus_creds_ref(sd_bus_creds *c); sd_bus_creds *sd_bus_creds_unref(sd_bus_creds *c); -uint64_t sd_bus_creds_get_mask(sd_bus_creds *c); +uint64_t sd_bus_creds_get_mask(const sd_bus_creds *c); int sd_bus_creds_get_pid(sd_bus_creds *c, pid_t *pid); int sd_bus_creds_get_pid_starttime(sd_bus_creds *c, uint64_t *usec); |