use static const instead of #define (DIS)ALLOW

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1b38f6ac0f511c07610a6afec616e6ec880d8905
This commit is contained in:
Maciej Żenczykowski
2023-10-06 13:59:52 -07:00
parent 1e32277fff
commit a09c2bbe49

View File

@@ -24,8 +24,8 @@
#include "bpf_helpers.h"
#define ALLOW 1
#define DISALLOW 0
static const int ALLOW = 1;
static const int DISALLOW = 0;
DEFINE_BPF_MAP_GRW(blocked_ports_map, ARRAY, int, uint64_t,
1024 /* 64K ports -> 1024 u64s */, AID_SYSTEM)