From 884fddf035c3bbd509f532d158e1cf58b88e1d36 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 16 Aug 2016 13:54:30 +0200 Subject: [PATCH] packet: remove empty and unused UDPVars struct --- src/decode-udp.h | 10 +++------- src/decode.h | 2 -- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/decode-udp.h b/src/decode-udp.h index 5636c32b0f..7bc0ec0805 100644 --- a/src/decode-udp.h +++ b/src/decode-udp.h @@ -44,13 +44,9 @@ typedef struct UDPHdr_ uint16_t uh_sum; /* checksum */ } __attribute__((__packed__)) UDPHdr; -typedef struct UDPVars_ -{ -} UDPVars; - -#define CLEAR_UDP_PACKET(p) do { \ - (p)->udph = NULL; \ - (p)->level4_comp_csum = -1; \ +#define CLEAR_UDP_PACKET(p) do { \ + (p)->level4_comp_csum = -1; \ + (p)->udph = NULL; \ } while (0) void DecodeUDPV4RegisterTests(void); diff --git a/src/decode.h b/src/decode.h index ff221a6876..2c759c0122 100644 --- a/src/decode.h +++ b/src/decode.h @@ -467,12 +467,10 @@ typedef struct Packet_ /* Can only be one of TCP, UDP, ICMP at any given time */ union { TCPVars tcpvars; - UDPVars udpvars; ICMPV4Vars icmpv4vars; ICMPV6Vars icmpv6vars; } l4vars; #define tcpvars l4vars.tcpvars -#define udpvars l4vars.udpvars #define icmpv4vars l4vars.icmpv4vars #define icmpv6vars l4vars.icmpv6vars -- 2.47.2