2003-10-06 Marcus Brinkmann <marcus@g10code.de>

* 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.
This commit is contained in:
Marcus Brinkmann 2003-10-06 14:06:31 +00:00
parent 4cb6f77a32
commit 142f4aea09
6 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,13 @@
2003-10-06 Marcus Brinkmann <marcus@g10code.de>
* 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 <sys/select.h> for fd_set.
[!HAVE_SYS_SELECT_H]: Include <sys/time.h>.

View File

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

View File

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

View File

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

View File

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

View File

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