]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode/tcp: remove unused macro
authorVictor Julien <vjulien@oisf.net>
Thu, 11 Apr 2024 14:24:51 +0000 (16:24 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 26 Apr 2024 18:59:45 +0000 (20:59 +0200)
SET_OPTS is now unused, so remove.

src/decode-tcp.c

index af29423d7e2da3b897910483d1566ccdec97ed0e..90cfc357bd2916ca60193af769c29d109cd906b1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2013 Open Information Security Foundation
+/* Copyright (C) 2007-2024 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
 #include "util-optimize.h"
 #include "flow.h"
 
-#define SET_OPTS(dst, src) \
-    (dst).type = (src).type; \
-    (dst).len  = (src).len; \
-    (dst).data = (src).data
-
 static void DecodeTCPOptions(Packet *p, const uint8_t *pkt, uint16_t pktlen)
 {
     uint8_t tcp_opt_cnt = 0;