mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[bittorrent] enum bittorrent_blacklist_flags -> bittorrent_blacklist_flags_T
This commit is contained in:
parent
2cada21757
commit
4487234de3
@ -227,7 +227,7 @@ add_peer_to_bittorrent_pool(struct bittorrent_connection *bittorrent,
|
||||
|
||||
/* The ID can be NULL for the compact format. */
|
||||
if (id) {
|
||||
enum bittorrent_blacklist_flags flags;
|
||||
bittorrent_blacklist_flags_T flags;
|
||||
|
||||
if (bittorrent_id_is_empty(id))
|
||||
return BITTORRENT_STATE_ERROR;
|
||||
@ -464,7 +464,7 @@ done_bittorrent_fetch(struct bittorrent_fetcher **fetcher_ref)
|
||||
struct bittorrent_blacklist_item {
|
||||
LIST_HEAD(struct bittorrent_blacklist_item);
|
||||
|
||||
enum bittorrent_blacklist_flags flags;
|
||||
bittorrent_blacklist_flags_T flags;
|
||||
bittorrent_id_T id;
|
||||
};
|
||||
|
||||
@ -485,7 +485,7 @@ get_bittorrent_blacklist_item(bittorrent_id_T peer_id)
|
||||
|
||||
void
|
||||
add_bittorrent_blacklist_flags(bittorrent_id_T peer_id,
|
||||
enum bittorrent_blacklist_flags flags)
|
||||
bittorrent_blacklist_flags_T flags)
|
||||
{
|
||||
struct bittorrent_blacklist_item *item;
|
||||
|
||||
@ -506,7 +506,7 @@ add_bittorrent_blacklist_flags(bittorrent_id_T peer_id,
|
||||
|
||||
void
|
||||
del_bittorrent_blacklist_flags(bittorrent_id_T peer_id,
|
||||
enum bittorrent_blacklist_flags flags)
|
||||
bittorrent_blacklist_flags_T flags)
|
||||
{
|
||||
struct bittorrent_blacklist_item *item;
|
||||
|
||||
@ -520,7 +520,7 @@ del_bittorrent_blacklist_flags(bittorrent_id_T peer_id,
|
||||
mem_free(item);
|
||||
}
|
||||
|
||||
enum bittorrent_blacklist_flags
|
||||
bittorrent_blacklist_flags_T
|
||||
get_bittorrent_blacklist_flags(bittorrent_id_T peer_id)
|
||||
{
|
||||
struct bittorrent_blacklist_item *item;
|
||||
|
@ -441,15 +441,17 @@ enum bittorrent_blacklist_flags {
|
||||
BITTORRENT_BLACKLIST_BEHAVIOUR, /**< Unfair behaviour, refuse connection */
|
||||
};
|
||||
|
||||
typedef unsigned char bittorrent_blacklist_flags_T;
|
||||
|
||||
void
|
||||
add_bittorrent_blacklist_flags(bittorrent_id_T peer_id,
|
||||
enum bittorrent_blacklist_flags flags);
|
||||
bittorrent_blacklist_flags_T flags);
|
||||
|
||||
void
|
||||
del_bittorrent_blacklist_flags(bittorrent_id_T peer_id,
|
||||
enum bittorrent_blacklist_flags flags);
|
||||
bittorrent_blacklist_flags_T flags);
|
||||
|
||||
enum bittorrent_blacklist_flags
|
||||
bittorrent_blacklist_flags_T
|
||||
get_bittorrent_blacklist_flags(bittorrent_id_T peer_id);
|
||||
|
||||
void done_bittorrent_blacklist(void);
|
||||
|
@ -69,7 +69,7 @@ static void
|
||||
check_bittorrent_peer_blacklisting(struct bittorrent_peer_connection *peer,
|
||||
struct connection_state state)
|
||||
{
|
||||
enum bittorrent_blacklist_flags flags = BITTORRENT_BLACKLIST_NONE;
|
||||
bittorrent_blacklist_flags_T flags = BITTORRENT_BLACKLIST_NONE;
|
||||
|
||||
if (bittorrent_id_is_empty(peer->id)
|
||||
|| !get_opt_bool("protocol.http.bugs.allow_blacklist", NULL))
|
||||
|
Loading…
Reference in New Issue
Block a user