summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-25 17:46:45 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-25 18:04:04 +0100
commit693eb9a2d42d71445dad273a76e2470199d1dc5a (patch)
tree9d43271a1cc9c91ff8660eda7720ab755a427a84 /src/shared/util.h
parent80a33f113bbdadf4fc7ffec7fed026fde59d232b (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/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 57667ef895..b37072f24a 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -712,7 +712,7 @@ static inline void _reset_umask_(struct _umask_struct_ *s) {
_saved_umask_.quit = true)
static inline unsigned u64log2(uint64_t n) {
- return (n > 1) ? __builtin_clzll(n) ^ 63U : 0;
+ return (n > 1) ? (unsigned) __builtin_clzll(n) ^ 63U : 0;
}
static inline bool logind_running(void) {