aboutgitcodelistschat:MatrixIRC
path: root/operations.h
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-05-16 08:25:27 +0200
committerAlice Frosi <afrosi@redhat.com>2023-05-19 14:37:42 +0200
commitfbc205bab17a25ae3dabef5a2ad97edcfcef9eef (patch)
tree58e97ef6b8cd054bec8ded905f73cc7170ffb4df /operations.h
parentef403b6687ec5739933f9f215093e1ea5c923666 (diff)
downloadseitan-fbc205bab17a25ae3dabef5a2ad97edcfcef9eef.tar
seitan-fbc205bab17a25ae3dabef5a2ad97edcfcef9eef.tar.gz
seitan-fbc205bab17a25ae3dabef5a2ad97edcfcef9eef.tar.bz2
seitan-fbc205bab17a25ae3dabef5a2ad97edcfcef9eef.tar.lz
seitan-fbc205bab17a25ae3dabef5a2ad97edcfcef9eef.tar.xz
seitan-fbc205bab17a25ae3dabef5a2ad97edcfcef9eef.tar.zst
seitan-fbc205bab17a25ae3dabef5a2ad97edcfcef9eef.zip
ops: fix op_call and tests
Diffstat (limited to 'operations.h')
-rw-r--r--operations.h3
1 files changed, 1 insertions, 2 deletions
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;
};