mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
util: make @sa const for evutil_socket_connect_()
This commit is contained in:
parent
1d34498ea3
commit
a8d32c2353
2
evutil.c
2
evutil.c
@ -523,7 +523,7 @@ evutil_socket_geterror(evutil_socket_t sock)
|
||||
/* XXX we should use an enum here. */
|
||||
/* 2 for connection refused, 1 for connected, 0 for not yet, -1 for error. */
|
||||
int
|
||||
evutil_socket_connect_(evutil_socket_t *fd_ptr, struct sockaddr *sa, int socklen)
|
||||
evutil_socket_connect_(evutil_socket_t *fd_ptr, const struct sockaddr *sa, int socklen)
|
||||
{
|
||||
int made_fd = 0;
|
||||
|
||||
|
@ -261,7 +261,7 @@ int evutil_open_closeonexec_(const char *pathname, int flags, unsigned mode);
|
||||
int evutil_read_file_(const char *filename, char **content_out, size_t *len_out,
|
||||
int is_binary);
|
||||
|
||||
int evutil_socket_connect_(evutil_socket_t *fd_ptr, struct sockaddr *sa, int socklen);
|
||||
int evutil_socket_connect_(evutil_socket_t *fd_ptr, const struct sockaddr *sa, int socklen);
|
||||
|
||||
int evutil_socket_finished_connecting_(evutil_socket_t fd);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user