mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Bug 1002: Fix build failure on Debian GNU/Linux arch powerpc
Change char id to enum bittorrent_message_id id to prevent FTBFS on
powerpc and s390
(cherry picked from commit 01b0c81227
,
with a conflict)
This commit is contained in:
parent
76d803bbb9
commit
4a1e296c3b
2
NEWS
2
NEWS
@ -330,6 +330,8 @@ To be released as 0.11.4.
|
||||
* minor: don't assume sizeof(int)==4 in bittorrent
|
||||
* trivial bug 947: document.html.wrap_nbsp also affects text in tables
|
||||
* trivial bug 997: fix unlikely stack corruption in active FTP
|
||||
* build bug 1002: fix ``comparison is always true due to limited range
|
||||
of data type'' warning on PowerPC and s390
|
||||
* build bug 950: fix ``config/install-sh: No such file or directory''
|
||||
on SunOS
|
||||
* build bug 936: fix errors about undefined off_t (autoheader
|
||||
|
@ -108,9 +108,7 @@ struct bittorrent_peer_request {
|
||||
|
||||
uint16_t block; /**< The block index in the piece. */
|
||||
|
||||
/* This holds the message id when the request struct is used for queuing
|
||||
* pending messages. */
|
||||
char id; /**< @-> enum bittorrent_message_id */
|
||||
enum bittorrent_message_id id; /**< ID of queued pending message. */
|
||||
|
||||
unsigned int cloned:1; /**< The request was cloned. */
|
||||
unsigned int requested:1; /**< Whether it has been requested. */
|
||||
|
Loading…
Reference in New Issue
Block a user