Skip to content

Commit

Permalink
compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jan 16, 2022
1 parent 281d236 commit 077e1a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fnettrace/radix.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef struct rnode_t {
RNode *head = 0;
int radix_nodes = 0;

static inline RNode *addOne(RNode *ptr, uint32_t ip, uint32_t mask, char *name) {
static inline RNode *addOne(RNode *ptr, char *name) {
assert(ptr);
if (ptr->one)
return ptr->one;
Expand All @@ -52,7 +52,7 @@ static inline RNode *addOne(RNode *ptr, uint32_t ip, uint32_t mask, char *name)
return node;
}

static inline RNode *addZero(RNode *ptr, uint32_t ip, uint32_t mask, char *name) {
static inline RNode *addZero(RNode *ptr, char *name) {
assert(ptr);
if (ptr->zero)
return ptr->zero;
Expand Down Expand Up @@ -91,9 +91,9 @@ char *radix_add(uint32_t ip, uint32_t mask, char *name) {
lastm |= m;
int valid = (lastm == mask)? 1: 0;
if (m & ip)
ptr = addOne(ptr, ip & lastm, mask & lastm, (valid)? name: NULL);
ptr = addOne(ptr, (valid)? name: NULL);
else
ptr = addZero(ptr, ip & lastm, mask & lastm, (valid)? name: NULL);
ptr = addZero(ptr, (valid)? name: NULL);
}
assert(ptr);
if (!ptr->name) {
Expand Down

0 comments on commit 077e1a4

Please sign in to comment.