declare pp_log_connection() as inline (avoids warning with proxyprotocol not present)

This commit is contained in:
Yves Rutschle committed 2026-07-12 18:10:34 +02:00
1 parent 7eabafc6e2
commit eb976475be
1 file changed
+1 -1
+1 -1
View File
@@ -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 */