Skip to content
Snippets Groups Projects
Commit a09c2bbe authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

use static const instead of #define (DIS)ALLOW


Test: TreeHugger
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I1b38f6ac0f511c07610a6afec616e6ec880d8905
parent 1e32277f
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment