From e6465b3b758a214d25b89d495dc34d8a549cacd1 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 22 Oct 2021 15:36:08 +0200 Subject: [PATCH] CLEANUP: lua: Use a const address to retrieve info about a connection hlua_socket_info() only extracts information about an address, there is no reason to not use a const. --- src/hlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hlua.c b/src/hlua.c index 9de8fc683..ab92ff79b 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -2500,7 +2500,7 @@ static int hlua_socket_send(struct lua_State *L) } #define SOCKET_INFO_MAX_LEN sizeof("[0000:0000:0000:0000:0000:0000:0000:0000]:12345") -__LJMP static inline int hlua_socket_info(struct lua_State *L, struct sockaddr_storage *addr) +__LJMP static inline int hlua_socket_info(struct lua_State *L, const struct sockaddr_storage *addr) { static char buffer[SOCKET_INFO_MAX_LEN]; int ret;