aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-27 13:28:28 +0900
committerMike Gilbert <floppym@gentoo.org>2018-06-27 14:18:16 -0400
commit57f7326b567413292626eae1378cf7ace60b7de5 (patch)
tree40fdc98d75887153ac7fd0282d4cfcac1bcc142f
parentsleep: fix printf format of fiemap fields (diff)
downloadsystemd-57f7326b567413292626eae1378cf7ace60b7de5.tar.gz
systemd-57f7326b567413292626eae1378cf7ace60b7de5.tar.bz2
systemd-57f7326b567413292626eae1378cf7ace60b7de5.zip
sd-bus: fix implicit downcast of bitfield reported by LGTM
(cherry picked from commit affaed1e55685e8e248db1afd50b3e0f466ce5cc)
-rw-r--r--src/libsystemd/sd-bus/bus-introspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-introspect.c b/src/libsystemd/sd-bus/bus-introspect.c
index cfcbd8b07..582e723e2 100644
--- a/src/libsystemd/sd-bus/bus-introspect.c
+++ b/src/libsystemd/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);