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:
parent
4cb6f77a32
commit
142f4aea09
@ -1,5 +1,13 @@
|
|||||||
2003-10-06 Marcus Brinkmann <marcus@g10code.de>
|
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.
|
* ath.h [HAVE_SYS_SELECT_H]: Include <sys/select.h> for fd_set.
|
||||||
[!HAVE_SYS_SELECT_H]: Include <sys/time.h>.
|
[!HAVE_SYS_SELECT_H]: Include <sys/time.h>.
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr)
|
|||||||
|
|
||||||
|
|
||||||
int
|
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)
|
if (ath_ops && ath_ops->connect)
|
||||||
return ath_ops->connect (s, addr, length);
|
return ath_ops->connect (s, addr, length);
|
||||||
|
@ -155,7 +155,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr)
|
|||||||
|
|
||||||
|
|
||||||
int
|
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);
|
return pth_connect (s, addr, length);
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr)
|
|||||||
|
|
||||||
|
|
||||||
int
|
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);
|
return connect (s, addr, length);
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr)
|
|||||||
|
|
||||||
|
|
||||||
int
|
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);
|
return connect (s, addr, length);
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
|
|||||||
struct timeval *timeout);
|
struct timeval *timeout);
|
||||||
ssize_t ath_waitpid (pid_t pid, int *status, int options);
|
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_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_sendmsg (int s, const struct msghdr *msg, int flags);
|
||||||
int ath_recvmsg (int s, 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);
|
struct timeval *timeout);
|
||||||
ssize_t (*waitpid) (pid_t pid, int *status, int options);
|
ssize_t (*waitpid) (pid_t pid, int *status, int options);
|
||||||
int (*accept) (int s, struct sockaddr *addr, socklen_t *length_ptr);
|
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 (*sendmsg) (int s, const struct msghdr *msg, int flags);
|
||||||
int (*recvmsg) (int s, struct msghdr *msg, int flags);
|
int (*recvmsg) (int s, struct msghdr *msg, int flags);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user