From: Tobias Brunner Date: Tue, 29 Nov 2022 16:56:40 +0000 (+0100) Subject: farp: Remove unused variable X-Git-Tag: 5.9.9rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3809bdac9052168c9fa6c0ef994fe2907a15481c;p=thirdparty%2Fstrongswan.git farp: Remove unused variable --- diff --git a/src/libcharon/plugins/farp/farp_spoofer.c b/src/libcharon/plugins/farp/farp_spoofer.c index 2286056821..2493b2da3d 100644 --- a/src/libcharon/plugins/farp/farp_spoofer.c +++ b/src/libcharon/plugins/farp/farp_spoofer.c @@ -411,7 +411,6 @@ CALLBACK(handler_onarp, bool, farp_handler_t *handler, int fd, watcher_event_t event) { struct bpf_hdr *bh; - struct ether_header *eh; arp_t *a; host_t *lcl, *rmt; uint8_t *p = handler->bufdat; @@ -428,7 +427,6 @@ CALLBACK(handler_onarp, bool, while (p < handler->bufdat + n) { bh = (struct bpf_hdr*)p; - eh = (struct ether_header*)(p + bh->bh_hdrlen); a = (arp_t*)(p + bh->bh_hdrlen + sizeof(struct ether_header)); lcl = host_create_from_chunk(AF_INET, chunk_create(a->sender_ip, 4), 0);