From eb976475be80e816ec754faed4b8afd64a52d872 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Sun, 12 Jul 2026 18:10:34 +0200 Subject: [PATCH] declare pp_log_connection() as inline (avoids warning with proxyprotocol not present) --- proxyprotocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxyprotocol.h b/proxyprotocol.h index 19523b6..e49b230 100644 --- a/proxyprotocol.h +++ b/proxyprotocol.h @@ -13,7 +13,7 @@ int pp_header_len(char* buffer, int len); #else /* HAVE_PROXYPROTOCOL */ static inline int pp_write_header(int pp_version, struct connection* cnx) { return 0; } -static int pp_log_connection(char* buffer, ssize_t buffer_len) { return 0; } +static inline int pp_log_connection(char* buffer, ssize_t buffer_len) { return 0; } static inline int pp_header_len(char*, int) { return 0; } #endif /* HAVE_PROXYPROTOCOL */