be: make @sa const for bufferevent_socket_connect()

This commit is contained in:
Azat Khuzhin 2014-12-02 15:05:59 +03:00
parent a8d32c2353
commit dc33c78391
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
/**