1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-21 00:25:37 +00: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:
Y Giridhar Appaji Nag 2008-02-10 12:30:02 +01:00 committed by Kalle Olavi Niemitalo
parent 76d803bbb9
commit 4a1e296c3b
2 changed files with 3 additions and 3 deletions

2
NEWS
View File

@ -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

View File

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