http: const out address param to evcon_get_peer

This commit is contained in:
Leon M. George 2020-09-08 15:38:16 +02:00 committed by Azat Khuzhin
parent 02428d9a2d
commit a18301a2bb
2 changed files with 2 additions and 2 deletions

2
http.c
View File

@ -2754,7 +2754,7 @@ evhttp_connection_set_closecb(struct evhttp_connection *evcon,
void
evhttp_connection_get_peer(struct evhttp_connection *evcon,
char **address, ev_uint16_t *port)
const char **address, ev_uint16_t *port)
{
*address = evcon->address;
*port = evcon->port;

View File

@ -959,7 +959,7 @@ void evhttp_connection_set_closecb(struct evhttp_connection *evcon,
/** Get the remote address and port associated with this connection. */
EVENT2_EXPORT_SYMBOL
void evhttp_connection_get_peer(struct evhttp_connection *evcon,
char **address, ev_uint16_t *port);
const char **address, ev_uint16_t *port);
/** Get the remote address associated with this connection.
* extracted from getpeername() OR from nameserver.