mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
use correct type for return value in qt_safe_sendto()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
23a8abed58
commit
41f8d0a034
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ static inline ssize_t qt_safe_recvfrom(int sockfd, void *buf, size_t len, int fl
|
|||
return ret;
|
||||
}
|
||||
|
||||
static inline int qt_safe_sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *to, QT_SOCKLEN_T tolen)
|
||||
static inline ssize_t qt_safe_sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *to, QT_SOCKLEN_T tolen)
|
||||
{
|
||||
#ifdef MSG_NOSIGNAL
|
||||
flags |= MSG_NOSIGNAL;
|
||||
|
@ -94,7 +94,7 @@ static inline int qt_safe_sendto(int sockfd, const void *buf, size_t len, int fl
|
|||
qt_ignore_sigpipe();
|
||||
#endif
|
||||
|
||||
int ret;
|
||||
ssize_t ret;
|
||||
Q_EINTR_LOOP(ret, ::sendto(sockfd, buf, len, flags, to, tolen));
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue