1
0
Fork 0

[bittorrent] signed char is not sufficient for va_arg

This commit is contained in:
Witold Filipczyk 2022-06-23 21:39:11 +02:00
parent 805b1d31b6
commit ad646029e3
3 changed files with 3 additions and 2 deletions

View File

@ -101,6 +101,7 @@ enum bittorrent_message_id {
};
typedef signed char bittorrent_message_id_T;
typedef int bittorrent_message_id_TT;
/** The peer request matches information sent in the request and cancel messages
* in the peer-wire protocol. See the piece cache header file (cache.h) for more

View File

@ -363,7 +363,7 @@ do_send_bittorrent_peer_message(struct bittorrent_peer_connection *peer,
* connection struct to disappear from under us. */
void
send_bittorrent_peer_message(struct bittorrent_peer_connection *peer,
bittorrent_message_id_T message_id, ...)
bittorrent_message_id_TT message_id, ...)
{
struct bittorrent_peer_request message_store, *message = &message_store;
va_list args;

View File

@ -25,7 +25,7 @@ update_bittorrent_peer_connection_stats(struct bittorrent_peer_connection *peer,
void
send_bittorrent_peer_message(struct bittorrent_peer_connection *peer,
bittorrent_message_id_T message_id, ...);
bittorrent_message_id_TT message_id, ...);
static void inline
set_bittorrent_peer_interested(struct bittorrent_peer_connection *peer)