diff options
author | Azat Khuzhin <a3at.mail@gmail.com> | 2014-12-02 15:05:36 +0300 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2015-08-18 20:06:52 +0300 |
commit | a8d32c2353b687cab0fd698b264a0ae925a81f18 (patch) | |
tree | 150ccda6120f23580a2c9885085b46fba019cdd7 | |
parent | 1d34498ea31134bd7a8fcadcb95910b30a479e19 (diff) | |
download | libevent-a8d32c2353b687cab0fd698b264a0ae925a81f18.tar.gz |
util: make @sa const for evutil_socket_connect_()
-rw-r--r-- | evutil.c | 2 | ||||
-rw-r--r-- | util-internal.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; diff --git a/util-internal.h b/util-internal.h index 4fdedeaf..db4e5f39 100644 --- a/util-internal.h +++ b/util-internal.h @@ -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); |