aboutgitcodelistschat:MatrixIRC
path: root/operations.h
diff options
context:
space:
mode:
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;
};