richardphibel / rpms / systemd

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