1
0
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
This commit is contained in:
Y Giridhar Appaji Nag 2008-02-10 12:30:02 +01:00 committed by Jonas Fonseca
parent c72730628a
commit 01b0c81227
2 changed files with 3 additions and 3 deletions

2
NEWS
View File

@ -41,6 +41,8 @@ To be released as 0.11.4.
* minor: don't assume sizeof(int)==4 in bittorrent * minor: don't assume sizeof(int)==4 in bittorrent
* trivial bug 947: document.html.wrap_nbsp also affects text in tables * trivial bug 947: document.html.wrap_nbsp also affects text in tables
* trivial bug 997: fix unlikely stack corruption in active FTP * 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'' * build bug 950: fix ``config/install-sh: No such file or directory''
on SunOS on SunOS
* build bug 936: fix errors about undefined off_t (autoheader * build bug 936: fix errors about undefined off_t (autoheader

View File

@ -107,9 +107,7 @@ struct bittorrent_peer_request {
uint16_t block; /* The block index in the piece. */ uint16_t block; /* The block index in the piece. */
/* This holds the message id when the request struct is used for queuing enum bittorrent_message_id id; /* ID of queued pending message. */
* pending messages. */
char id; /* -> enum bittorrent_message_id */
unsigned int cloned:1; /* The request was cloned. */ unsigned int cloned:1; /* The request was cloned. */
unsigned int requested:1; /* Whether it has been requested. */ unsigned int requested:1; /* Whether it has been requested. */