anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0784-tree-wide-use-signed-int-instead-of-int-for-bit-fiel.patch

661545
From 16c52e0a0efcdddc7809eca7fa6543f47e91ec9b Mon Sep 17 00:00:00 2001
661545
From: Frantisek Sumsal <fsumsal@redhat.com>
661545
Date: Wed, 27 Feb 2019 19:45:59 +0100
661545
Subject: [PATCH] tree-wide: use 'signed int' instead of 'int' for bit field
661545
 variables
661545
661545
Suggested by LGTM: https://lgtm.com/rules/1506024027114/
661545
661545
(cherry picked from commit 845d247a3dbca437fd8a118a118328acb322e2c1)
661545
661545
Resolves: #1694605
661545
---
661545
 src/libsystemd/sd-event/sd-event.c | 2 +-
661545
 1 file changed, 1 insertion(+), 1 deletion(-)
661545
661545
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
661545
index 9d48e5a490..1cd2dfac84 100644
661545
--- a/src/libsystemd/sd-event/sd-event.c
661545
+++ b/src/libsystemd/sd-event/sd-event.c
661545
@@ -68,7 +68,7 @@ struct sd_event_source {
661545
         char *description;
661545
 
661545
         EventSourceType type:5;
661545
-        int enabled:3;
661545
+        signed int enabled:3;
661545
         bool pending:1;
661545
         bool dispatching:1;
661545
         bool floating:1;