mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
http: const out address param to evcon_get_peer
This commit is contained in:
parent
02428d9a2d
commit
a18301a2bb
2
http.c
2
http.c
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user