diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index a817a1e5..1a03c034 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,5 +1,13 @@ 2003-10-06 Marcus Brinkmann + * ath.h (struct ath_ops): Make ADDR argument of CONNECT prototype + const. + (ath_connect): Make ADDR argument const. + * ath-pthread.c (ath_connect): Likewise. + * ath-pth.c (ath_connect): Likewise. + * ath-compat.c (ath_connect): Likewise. + * ath.c (ath_connect): Likewise. + * ath.h [HAVE_SYS_SELECT_H]: Include for fd_set. [!HAVE_SYS_SELECT_H]: Include . diff --git a/gpgme/ath-compat.c b/gpgme/ath-compat.c index 0c25c209..02ccc58a 100644 --- a/gpgme/ath-compat.c +++ b/gpgme/ath-compat.c @@ -154,7 +154,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr) int -ath_connect (int s, struct sockaddr *addr, socklen_t length) +ath_connect (int s, const struct sockaddr *addr, socklen_t length) { if (ath_ops && ath_ops->connect) return ath_ops->connect (s, addr, length); diff --git a/gpgme/ath-pth.c b/gpgme/ath-pth.c index e58d5dec..2c7cd5aa 100644 --- a/gpgme/ath-pth.c +++ b/gpgme/ath-pth.c @@ -155,7 +155,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr) int -ath_connect (int s, struct sockaddr *addr, socklen_t length) +ath_connect (int s, const struct sockaddr *addr, socklen_t length) { return pth_connect (s, addr, length); } diff --git a/gpgme/ath-pthread.c b/gpgme/ath-pthread.c index db5ade65..94a4f599 100644 --- a/gpgme/ath-pthread.c +++ b/gpgme/ath-pthread.c @@ -156,7 +156,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr) int -ath_connect (int s, struct sockaddr *addr, socklen_t length) +ath_connect (int s, const struct sockaddr *addr, socklen_t length) { return connect (s, addr, length); } diff --git a/gpgme/ath.c b/gpgme/ath.c index cdef2b82..6390ecc4 100644 --- a/gpgme/ath.c +++ b/gpgme/ath.c @@ -122,7 +122,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr) int -ath_connect (int s, struct sockaddr *addr, socklen_t length) +ath_connect (int s, const struct sockaddr *addr, socklen_t length) { return connect (s, addr, length); } diff --git a/gpgme/ath.h b/gpgme/ath.h index 07d19ad9..04dfb285 100644 --- a/gpgme/ath.h +++ b/gpgme/ath.h @@ -69,7 +69,7 @@ ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, struct timeval *timeout); ssize_t ath_waitpid (pid_t pid, int *status, int options); int ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr); -int ath_connect (int s, struct sockaddr *addr, socklen_t length); +int ath_connect (int s, const struct sockaddr *addr, socklen_t length); int ath_sendmsg (int s, const struct msghdr *msg, int flags); int ath_recvmsg (int s, struct msghdr *msg, int flags); @@ -87,7 +87,7 @@ struct ath_ops struct timeval *timeout); ssize_t (*waitpid) (pid_t pid, int *status, int options); int (*accept) (int s, struct sockaddr *addr, socklen_t *length_ptr); - int (*connect) (int s, struct sockaddr *addr, socklen_t length); + int (*connect) (int s, const struct sockaddr *addr, socklen_t length); int (*sendmsg) (int s, const struct msghdr *msg, int flags); int (*recvmsg) (int s, struct msghdr *msg, int flags); };