diff options
author | 2022-01-16 10:19:09 -0500 | |
---|---|---|
committer | 2022-01-16 10:19:09 -0500 | |
commit | 077e1a4f83093e02c1077bb3b6be2dafeb2ded05 (patch) | |
tree | 966f7e6671b21016bc491b1823600d900fe116e5 /src | |
parent | more on nettrace (diff) | |
download | firejail-077e1a4f83093e02c1077bb3b6be2dafeb2ded05.tar.gz firejail-077e1a4f83093e02c1077bb3b6be2dafeb2ded05.tar.zst firejail-077e1a4f83093e02c1077bb3b6be2dafeb2ded05.zip |
compile warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/fnettrace/radix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fnettrace/radix.c b/src/fnettrace/radix.c index c800c8708..b9104bd39 100644 --- a/src/fnettrace/radix.c +++ b/src/fnettrace/radix.c | |||
@@ -34,7 +34,7 @@ typedef struct rnode_t { | |||
34 | RNode *head = 0; | 34 | RNode *head = 0; |
35 | int radix_nodes = 0; | 35 | int radix_nodes = 0; |
36 | 36 | ||
37 | static inline RNode *addOne(RNode *ptr, uint32_t ip, uint32_t mask, char *name) { | 37 | static inline RNode *addOne(RNode *ptr, char *name) { |
38 | assert(ptr); | 38 | assert(ptr); |
39 | if (ptr->one) | 39 | if (ptr->one) |
40 | return ptr->one; | 40 | return ptr->one; |
@@ -52,7 +52,7 @@ static inline RNode *addOne(RNode *ptr, uint32_t ip, uint32_t mask, char *name) | |||
52 | return node; | 52 | return node; |
53 | } | 53 | } |
54 | 54 | ||
55 | static inline RNode *addZero(RNode *ptr, uint32_t ip, uint32_t mask, char *name) { | 55 | static inline RNode *addZero(RNode *ptr, char *name) { |
56 | assert(ptr); | 56 | assert(ptr); |
57 | if (ptr->zero) | 57 | if (ptr->zero) |
58 | return ptr->zero; | 58 | return ptr->zero; |
@@ -91,9 +91,9 @@ char *radix_add(uint32_t ip, uint32_t mask, char *name) { | |||
91 | lastm |= m; | 91 | lastm |= m; |
92 | int valid = (lastm == mask)? 1: 0; | 92 | int valid = (lastm == mask)? 1: 0; |
93 | if (m & ip) | 93 | if (m & ip) |
94 | ptr = addOne(ptr, ip & lastm, mask & lastm, (valid)? name: NULL); | 94 | ptr = addOne(ptr, (valid)? name: NULL); |
95 | else | 95 | else |
96 | ptr = addZero(ptr, ip & lastm, mask & lastm, (valid)? name: NULL); | 96 | ptr = addZero(ptr, (valid)? name: NULL); |
97 | } | 97 | } |
98 | assert(ptr); | 98 | assert(ptr); |
99 | if (!ptr->name) { | 99 | if (!ptr->name) { |