daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff2b41
From c8389c4a0b1e2587247824782230d4c132a639ee Mon Sep 17 00:00:00 2001
ff2b41
From: Yu Watanabe <watanabe.yu+github@gmail.com>
ff2b41
Date: Wed, 27 Jun 2018 13:28:28 +0900
ff2b41
Subject: [PATCH] sd-bus: fix implicit downcast of bitfield reported by LGTM
ff2b41
ff2b41
(cherry picked from commit affaed1e55685e8e248db1afd50b3e0f466ce5cc)
ff2b41
ff2b41
Resolves: #1694605
ff2b41
---
ff2b41
 src/libsystemd/sd-bus/bus-introspect.c | 2 +-
ff2b41
 1 file changed, 1 insertion(+), 1 deletion(-)
ff2b41
ff2b41
diff --git a/src/libsystemd/sd-bus/bus-introspect.c b/src/libsystemd/sd-bus/bus-introspect.c
ff2b41
index d528ab2a04..f77e6abec7 100644
ff2b41
--- a/src/libsystemd/sd-bus/bus-introspect.c
ff2b41
+++ b/src/libsystemd/sd-bus/bus-introspect.c
ff2b41
@@ -74,7 +74,7 @@ int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefi
ff2b41
         return 0;
ff2b41
 }
ff2b41
 
ff2b41
-static void introspect_write_flags(struct introspect *i, int type, int flags) {
ff2b41
+static void introspect_write_flags(struct introspect *i, int type, uint64_t flags) {
ff2b41
         if (flags & SD_BUS_VTABLE_DEPRECATED)
ff2b41
                 fputs("   <annotation name=\"org.freedesktop.DBus.Deprecated\" value=\"true\"/>\n", i->f);
ff2b41