mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
be: make @sa const for bufferevent_socket_connect()
This commit is contained in:
parent
a8d32c2353
commit
dc33c78391
@ -351,7 +351,7 @@ bufferevent_socket_new(struct event_base *base, evutil_socket_t fd,
|
||||
|
||||
int
|
||||
bufferevent_socket_connect(struct bufferevent *bev,
|
||||
struct sockaddr *sa, int socklen)
|
||||
const struct sockaddr *sa, int socklen)
|
||||
{
|
||||
struct bufferevent_private *bufev_p =
|
||||
EVUTIL_UPCAST(bev, struct bufferevent_private, bev);
|
||||
|
@ -209,7 +209,7 @@ struct bufferevent *bufferevent_socket_new(struct event_base *base, evutil_socke
|
||||
@return 0 on success, -1 on failure.
|
||||
*/
|
||||
EVENT2_EXPORT_SYMBOL
|
||||
int bufferevent_socket_connect(struct bufferevent *, struct sockaddr *, int);
|
||||
int bufferevent_socket_connect(struct bufferevent *, const struct sockaddr *, int);
|
||||
|
||||
struct evdns_base;
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user