From: Lev Stipakov Date: Tue, 15 Apr 2025 15:52:53 +0000 (+0200) Subject: Remove UINT8_MAX definition X-Git-Tag: v2.7_alpha1~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea1e6490a69b6209d6f972a50df8a0d05cb3d27e;p=thirdparty%2Fopenvpn.git Remove UINT8_MAX definition Because this is a part of C99 if uint8_t is available. Change-Id: I37482a8c322680add00bab52272f9945fbb3bd09 Signed-off-by: Lev Stipakov Acked-by: Gert Doering Message-Id: <20250415155259.12601-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31440.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index bd7a4498..a0c22b1c 100644 --- a/src/openvpn/socket.c +++ b/src/openvpn/socket.c @@ -3036,10 +3036,6 @@ print_in_port_t(in_port_t port, struct gc_arena *gc) return BSTR(&buffer); } -#ifndef UINT8_MAX -#define UINT8_MAX 0xff -#endif - /* add some offset to an ipv6 address * (add in steps of 8 bits, taking overflow into next round) */