Skip to content

Commit a18301a

Browse files
yogo1212azat
authored andcommitted
http: const out address param to evcon_get_peer
1 parent 02428d9 commit a18301a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2754,7 +2754,7 @@ evhttp_connection_set_closecb(struct evhttp_connection *evcon,
27542754

27552755
void
27562756
evhttp_connection_get_peer(struct evhttp_connection *evcon,
2757-
char **address, ev_uint16_t *port)
2757+
const char **address, ev_uint16_t *port)
27582758
{
27592759
*address = evcon->address;
27602760
*port = evcon->port;

include/event2/http.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ void evhttp_connection_set_closecb(struct evhttp_connection *evcon,
959959
/** Get the remote address and port associated with this connection. */
960960
EVENT2_EXPORT_SYMBOL
961961
void evhttp_connection_get_peer(struct evhttp_connection *evcon,
962-
char **address, ev_uint16_t *port);
962+
const char **address, ev_uint16_t *port);
963963

964964
/** Get the remote address associated with this connection.
965965
* extracted from getpeername() OR from nameserver.

0 commit comments

Comments
 (0)