From d587a5d1ca6093511934303cef8dc8542648e9e8 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sat, 2 Mar 2013 12:45:53 -0800 Subject: [PATCH] Remove unused variable --- src/main/radsniff.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/radsniff.c b/src/main/radsniff.c index 5eeef50..1b997fb 100644 --- a/src/main/radsniff.c +++ b/src/main/radsniff.c @@ -208,7 +208,6 @@ static void got_packet(UNUSED uint8_t *args, const struct pcap_pkthdr *header, c /* * Define pointers for packet's attributes */ - const struct ethernet_header *ethernet; /* The ethernet header */ const struct ip_header *ip; /* The IP header */ const struct udp_header *udp; /* The UDP header */ const uint8_t *payload; /* Packet payload */ @@ -235,7 +234,6 @@ static void got_packet(UNUSED uint8_t *args, const struct pcap_pkthdr *header, c ip = (const struct ip_header*) (data + 4); } else { - ethernet = (const struct ethernet_header*)(data); ip = (const struct ip_header*)(data + size_ethernet); } -- 2.1.4