From fbc205bab17a25ae3dabef5a2ad97edcfcef9eef Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Tue, 16 May 2023 08:25:27 +0200 Subject: ops: fix op_call and tests --- operations.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'operations.h') diff --git a/operations.h b/operations.h index b1d0ac2..d942ffa 100644 --- a/operations.h +++ b/operations.h @@ -13,7 +13,6 @@ #include "common/util.h" #define STACK_SIZE (1024 * 1024 / 8) -#define NS_NUM (sizeof(enum ns_type)) #define HANDLE_OP(code, call, type) \ case code: \ do { \ @@ -34,7 +33,7 @@ struct ns_path { struct arg_clone { long nr; void *args[6]; - struct ns_path ns[sizeof(enum ns_type)]; + struct ns_path ns[NS_NUM]; long ret; int err; }; -- cgit v1.2.3