oddjob/backport-Fix-implicit-cast-from-const-to-non-const.patch
2024-07-31 06:45:08 +00:00

26 lines
708 B
Diff

From c64e990a7e70f2a4a04c93603150f2f109e85c6b Mon Sep 17 00:00:00 2001
From: Christopher Byrne <salah.coronya@gmail.com>
Date: Dec 21 2023 07:53:58 +0000
Subject: src/oddjobd.c: Fix implicit cast from const to non-const
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
---
diff --git a/src/oddjobd.c b/src/oddjobd.c
index fa61f8a..3aa8a8f 100644
--- a/src/oddjobd.c
+++ b/src/oddjobd.c
@@ -242,8 +242,7 @@ static void check_selinux_applicable(void);
static dbus_bool_t
check_one_ac_selinux(struct oddjob_acl *acl, const char *selinux_context)
{
- char *ctx;
- const char *user, *role, *type, *range;
+ const char *ctx, *user, *role, *type, *range;
dbus_bool_t ret;
context_t context;