aboutsummaryrefslogtreecommitdiffstats
path: root/main/ca-certificates/0001-update-ca-fix-compiler-warning.patch
blob: 9630cf7fd6c1861d6f135a7c8e84a44fc5be0236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 3184fe80e403b9dc6d5fe3b7ebcd9d375363e2e4 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 5 Feb 2020 14:42:38 +0100
Subject: [PATCH 1/3] update-ca: fix compiler warning

---
 update-ca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update-ca.c b/update-ca.c
index 7bb4f1b..2b3195b 100644
--- a/update-ca.c
+++ b/update-ca.c
@@ -330,7 +330,7 @@ int main(int a, char **v)
 	free(tmpfile);
 
 	/* Execute run-parts */
-	static const char *run_parts_args[] = { "run-parts", RUNPARTSDIR, 0 };
+	static char *const run_parts_args[] = { "run-parts", RUNPARTSDIR, 0 };
 	execve("/usr/bin/run-parts", run_parts_args, NULL);
 	execve("/bin/run-parts", run_parts_args, NULL);
 	perror("run-parts");
-- 
2.25.0