From 4bd39f7f39f65a532a96b0ba12dca7499c5b9a86 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Thu, 16 Feb 2023 08:55:02 +0100 Subject: Rename field old to oldfd Signed-off-by: Alice Frosi --- actions.c | 4 ++-- gluten.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actions.c b/actions.c index 4cef920..1eb50f1 100644 --- a/actions.c +++ b/actions.c @@ -215,7 +215,7 @@ int do_actions(struct action actions[], unsigned int n_actions, int pid, resp_fd.id = id; resp_fd.flags |= SECCOMP_ADDFD_FLAG_SEND; resp_fd.newfd = actions[i].inj.newfd; - resp_fd.srcfd = actions[i].inj.old; + resp_fd.srcfd = actions[i].inj.oldfd; resp_fd.flags |= SECCOMP_ADDFD_FLAG_SETFD; if (send_inject_target(&resp_fd, notifyfd) == -1) return -1; @@ -223,7 +223,7 @@ int do_actions(struct action actions[], unsigned int n_actions, int pid, case A_INJECT: resp_fd.id = id; resp_fd.newfd = actions[i].inj.newfd; - resp_fd.srcfd = actions[i].inj.old; + resp_fd.srcfd = actions[i].inj.oldfd; resp_fd.flags |= SECCOMP_ADDFD_FLAG_SETFD; if (send_inject_target(&resp_fd, notifyfd) == -1) return -1; diff --git a/gluten.h b/gluten.h index c9f6600..c6cac3c 100644 --- a/gluten.h +++ b/gluten.h @@ -72,7 +72,7 @@ struct act_return { struct act_inject { uint32_t newfd; - uint32_t old; + uint32_t oldfd; }; struct action { -- cgit v1.2.3