|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 822a59607c4974915db0644b627070f001986825 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Mon, 8 Sep 2014 22:10:36 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] execute: silence warnings
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Mark two function parameters as const
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/core/execute.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/core/execute.c b/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 2b16b36c19..db755777c1 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -939,7 +939,7 @@ static void rename_process_from_path(const char *path) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
#ifdef HAVE_SECCOMP
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
-static int apply_seccomp(ExecContext *c) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+static int apply_seccomp(const ExecContext *c) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
uint32_t negative_action, action;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
scmp_filter_ctx *seccomp;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Iterator i;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -988,7 +988,7 @@ finish:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
return r;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
-static int apply_address_families(ExecContext *c) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+static int apply_address_families(const ExecContext *c) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
scmp_filter_ctx *seccomp;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Iterator i;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
int r;
|