diff --git a/libtransmission/net.h b/libtransmission/net.h index 0509f9fad..dca6b774a 100644 --- a/libtransmission/net.h +++ b/libtransmission/net.h @@ -152,11 +152,11 @@ tr_socket_t tr_netAccept (tr_session * session, tr_address * setme_addr, tr_port * setme_port); -int tr_netSetTOS (tr_socket_t s, +void tr_netSetTOS (tr_socket_t s, int tos); -int tr_netSetCongestionControl (tr_socket_t s, - const char * algorithm); +void tr_netSetCongestionControl (tr_socket_t s, + const char * algorithm); void tr_netClose (tr_session * session, tr_socket_t s); diff --git a/libtransmission/verify.c b/libtransmission/verify.c index cad8ff83b..b034a9d04 100644 --- a/libtransmission/verify.c +++ b/libtransmission/verify.c @@ -93,7 +93,7 @@ verifyTorrent (tr_torrent * tor, bool * stopFlag) bytesThisPass = numRead; tr_sha1_update (sha, buffer, bytesThisPass); #if defined HAVE_POSIX_FADVISE && defined POSIX_FADV_DONTNEED - posix_fadvise (fd, filePos, bytesThisPass, POSIX_FADV_DONTNEED); + (void) posix_fadvise (fd, filePos, bytesThisPass, POSIX_FADV_DONTNEED); #endif } }