From 142f4aea09fa0dab6a5099cd727fabf70e94a37e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 6 Oct 2003 14:06:31 +0000 Subject: [PATCH] 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. --- gpgme/ChangeLog | 8 ++++++++ gpgme/ath-compat.c | 2 +- gpgme/ath-pth.c | 2 +- gpgme/ath-pthread.c | 2 +- gpgme/ath.c | 2 +- gpgme/ath.h | 4 ++-- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index a817a1e..1a03c03 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 0c25c20..02ccc58 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 e58d5de..2c7cd5a 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 db5ade6..94a4f59 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 cdef2b8..6390ecc 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 07d19ad..04dfb28 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); }; -- 2.26.2