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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user