summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-10 11:12:22 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2019-05-03 13:00:29 +0200
commit51747496a38894d76d3e5b4295c54b1654b7eb69 (patch)
tree5a6ecab49a17a857599d6dad9608adec4fc1981c /src/libsystemd/sd-bus
parent401f1fdc309175d3920c0fe168e52c601474c000 (diff)
downloadsystemd-51747496a38894d76d3e5b4295c54b1654b7eb69.tar.gz
sd-bus: use size_t when dealing with memory offsets
(cherry picked from commit 3cae6c21e732fd46ff024d6625243d88ef6377ed) Resolves: #1683319
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/bus-creds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-creds.c b/src/libsystemd/sd-bus/bus-creds.c
index b180a033b8..6896bcf246 100644
--- a/src/libsystemd/sd-bus/bus-creds.c
+++ b/src/libsystemd/sd-bus/bus-creds.c
@@ -651,7 +651,7 @@ _public_ int sd_bus_creds_get_description(sd_bus_creds *c, const char **ret) {
return 0;
}
-static int has_cap(sd_bus_creds *c, unsigned offset, int capability) {
+static int has_cap(sd_bus_creds *c, size_t offset, int capability) {
size_t sz;
assert(c);