1
0
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:
Witold Filipczyk 2022-02-17 19:29:04 +01:00
parent 07a3a19b75
commit 07fb70a4a3
2 changed files with 3 additions and 3 deletions

View File

@ -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" },

View File

@ -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: */