From 3fee8d5aed122f34ec13637f5f4b1502d13cc923 Mon Sep 17 00:00:00 2001 From: dartvader316 Date: Mon, 5 Aug 2024 20:19:10 +0300 Subject: [PATCH] fix compile without -O2 --- extend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend.c b/extend.c index 92abe93..b91edf1 100644 --- a/extend.c +++ b/extend.c @@ -90,7 +90,7 @@ int mode_add_get(struct sockaddr_ina *dst, int m) } -inline bool check_port(uint16_t *p, struct sockaddr_in6 *dst) +static inline bool check_port(uint16_t *p, struct sockaddr_in6 *dst) { return (dst->sin6_port >= p[0] && dst->sin6_port <= p[1]);