mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-17 06:24:12 -04:00
[bittorrent] signed char is not sufficient for va_arg
This commit is contained in:
parent
805b1d31b6
commit
ad646029e3
@ -101,6 +101,7 @@ enum bittorrent_message_id {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef signed char bittorrent_message_id_T;
|
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
|
/** 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
|
* in the peer-wire protocol. See the piece cache header file (cache.h) for more
|
||||||
|
@ -363,7 +363,7 @@ do_send_bittorrent_peer_message(struct bittorrent_peer_connection *peer,
|
|||||||
* connection struct to disappear from under us. */
|
* connection struct to disappear from under us. */
|
||||||
void
|
void
|
||||||
send_bittorrent_peer_message(struct bittorrent_peer_connection *peer,
|
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;
|
struct bittorrent_peer_request message_store, *message = &message_store;
|
||||||
va_list args;
|
va_list args;
|
||||||
|
@ -25,7 +25,7 @@ update_bittorrent_peer_connection_stats(struct bittorrent_peer_connection *peer,
|
|||||||
|
|
||||||
void
|
void
|
||||||
send_bittorrent_peer_message(struct bittorrent_peer_connection *peer,
|
send_bittorrent_peer_message(struct bittorrent_peer_connection *peer,
|
||||||
bittorrent_message_id_T message_id, ...);
|
bittorrent_message_id_TT message_id, ...);
|
||||||
|
|
||||||
static void inline
|
static void inline
|
||||||
set_bittorrent_peer_interested(struct bittorrent_peer_connection *peer)
|
set_bittorrent_peer_interested(struct bittorrent_peer_connection *peer)
|
||||||
|
Loading…
Reference in New Issue
Block a user