From: Frank Lichtenheld Date: Mon, 30 Jun 2025 16:42:01 +0000 (+0200) Subject: packet_id: Fix build with --disable-debug X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Fopenvpn.git packet_id: Fix build with --disable-debug Broken since commit bc62a9a02cb7365a678bcd3f2faf537a420cc5a0 "Add methods to read/write packet ids for epoch data" Change-Id: I3bed9c7aafee8e62ddae14c0d3e21cf4c146a37c Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Message-Id: <20250630164207.10477-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32013.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/packet_id.c b/src/openvpn/packet_id.c index c8dae322..76a81c69 100644 --- a/src/openvpn/packet_id.c +++ b/src/openvpn/packet_id.c @@ -673,6 +673,8 @@ packet_id_debug_print(int msglevel, gc_free(&gc); } +#endif /* ifdef ENABLE_DEBUG */ + uint16_t packet_id_read_epoch(struct packet_id_net *pin, struct buffer *buf) { @@ -711,6 +713,3 @@ packet_id_write_epoch(struct packet_id_send *p, uint16_t epoch, struct buffer *b return buf_write(buf, &net_id, sizeof(net_id)); } - - -#endif /* ifdef ENABLE_DEBUG */