1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

[bittorrent] initializer was too long

This commit is contained in:
Witold Filipczyk 2022-01-28 16:47:20 +01:00
parent ef24855aa7
commit 23d687d7f6

View File

@ -53,7 +53,7 @@ enum bittorrent_handshake_state {
/* Storing the version identification part of the handshake as one entity
* (length prefix and string) makes it much easier to verify and write. */
static const bittorrent_id_T BITTORRENT_ID = "\023BitTorrent protocol";
static const bittorrent_id_T BITTORRENT_ID = {'\023','B','i','t','T','o','r','r','e','n','t',' ','p','r','o','t','o','c','o','l'};
/* Has the last message written to the peer socket been sent or not? */
#define bittorrent_peer_is_sending(peer) ((peer)->socket->write_buffer)