diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-25 17:46:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-25 18:04:04 +0100 |
commit | 693eb9a2d42d71445dad273a76e2470199d1dc5a (patch) | |
tree | 9d43271a1cc9c91ff8660eda7720ab755a427a84 /src/libsystemd-bus/bus-control.c | |
parent | 80a33f113bbdadf4fc7ffec7fed026fde59d232b (diff) |
bus: rename message "serial" to "cookie"
Even if the lower-leveld dbus1 protocol calls it "serial", let's expose
the word "cookie" for this instead, as this is what kdbus uses and since
it doesn't imply monotonicity the same way "serial" does.
Diffstat (limited to 'src/libsystemd-bus/bus-control.c')
-rw-r--r-- | src/libsystemd-bus/bus-control.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c index 511ca20ee3..e7e9ba07b0 100644 --- a/src/libsystemd-bus/bus-control.c +++ b/src/libsystemd-bus/bus-control.c @@ -411,14 +411,14 @@ static int bus_get_owner_kdbus( m = (SD_BUS_CREDS_UID | SD_BUS_CREDS_GID | SD_BUS_CREDS_PID) & mask; if (m) { - c->uid = item->creds.uid; - c->pid = item->creds.pid; - c->gid = item->creds.gid; + c->uid = (uid_t) item->creds.uid; + c->pid = (pid_t) item->creds.pid; + c->gid = (gid_t) item->creds.gid; c->mask |= m; } if (mask & SD_BUS_CREDS_TID && item->creds.tid > 0) { - c->tid = item->creds.tid; + c->tid = (pid_t) item->creds.tid; c->mask |= SD_BUS_CREDS_TID; } |