Skip to content

Commit

Permalink
Merge pull request #1229 from ariel-anieli/unused-vars-warns
Browse files Browse the repository at this point in the history
Clear out warnings about unused variables
  • Loading branch information
gustavo-iniguez-goya authored Dec 8, 2024
2 parents dd72714 + af70766 commit 353e10a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ebpf_prog/opensnitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ int kprobe__udpv6_sendmsg(struct pt_regs *ctx)
udpv6_key.saddr = sock.saddr;
#endif

u32 zero_key = 0;
struct udpv6_value_t *lookedupValue = bpf_map_lookup_elem(&udpv6Map, &udpv6_key);
u64 pid = bpf_get_current_pid_tgid() >> 32;
if ( lookedupValue == NULL || lookedupValue->pid != pid) {
Expand Down Expand Up @@ -369,7 +368,6 @@ int kprobe__iptunnel_xmit(struct pt_regs *ctx)

struct udp_key_t udp_key;
struct udp_value_t udp_value;
u32 zero_key = 0;
__builtin_memset(&udp_key, 0, sizeof(udp_key));
__builtin_memset(&udp_value, 0, sizeof(udp_value));

Expand Down

0 comments on commit 353e10a

Please sign in to comment.