summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-27 13:28:28 +0900
committerSven Eden <sven.eden@prydeworx.com>2018-10-29 10:18:22 +0100
commit8de16163844298c46cac12950f7c6eae85d13ff6 (patch)
tree7ede3ae7d57d290b0cac6806a8b69e8463c9151c
parented82488a18a0b0eeae112cd6aec178622a1579cd (diff)
sd-bus: fix implicit downcast of bitfield reported by LGTM
(cherry picked from commit affaed1e55685e8e248db1afd50b3e0f466ce5cc)
-rw-r--r--src/libelogind/sd-bus/bus-introspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libelogind/sd-bus/bus-introspect.c b/src/libelogind/sd-bus/bus-introspect.c
index 483c29949..2890f411b 100644
--- a/src/libelogind/sd-bus/bus-introspect.c
+++ b/src/libelogind/sd-bus/bus-introspect.c
@@ -63,7 +63,7 @@ int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefi
return 0;
}
-static void introspect_write_flags(struct introspect *i, int type, int flags) {
+static void introspect_write_flags(struct introspect *i, int type, uint64_t flags) {
if (flags & SD_BUS_VTABLE_DEPRECATED)
fputs(" <annotation name=\"org.freedesktop.DBus.Deprecated\" value=\"true\"/>\n", i->f);