mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[bittorrent] const in get_peer_message
This commit is contained in:
parent
07a3a19b75
commit
07fb70a4a3
@ -56,12 +56,12 @@ get_peer_id(bittorrent_id_T peer_id)
|
||||
return hex;
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
get_peer_message(bittorrent_message_id_T message_id)
|
||||
{
|
||||
static struct {
|
||||
bittorrent_message_id_T message_id;
|
||||
char *name;
|
||||
const char *name;
|
||||
} messages[] = {
|
||||
{ BITTORRENT_MESSAGE_INCOMPLETE, "incomplete" },
|
||||
{ BITTORRENT_MESSAGE_KEEP_ALIVE, "keep-alive" },
|
||||
|
@ -399,7 +399,7 @@ void done_bittorrent_message(struct bittorrent_message *message);
|
||||
/* ************************************************************************** */
|
||||
|
||||
char *get_peer_id(bittorrent_id_T peer);
|
||||
char *get_peer_message(bittorrent_message_id_T message_id);
|
||||
const char *get_peer_message(bittorrent_message_id_T message_id);
|
||||
|
||||
/* ************************************************************************** */
|
||||
/* Peer request management: */
|
||||
|
Loading…
Reference in New Issue
Block a user