]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: use size_t when dealing with memory offsets
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Oct 2018 09:12:22 +0000 (11:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Oct 2018 09:12:22 +0000 (11:12 +0200)
src/libsystemd/sd-bus/bus-creds.c

index b454270d3f0930a16c7066d431b311c5b690d37c..722366a6fd3be94812659873167d27b0febf6edb 100644 (file)
@@ -649,7 +649,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);