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