mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04:00
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.
This commit is contained in:
parent
99163b75ec
commit
e6465b3b75
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue