mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 17:19:22 +00:00
* netboot/natsemi.c: Fix compile error with gcc 4.1.1. Cast
cannot make a variable volatile - it should be declared as such. * netboot/sis900.c: Likewise.
This commit is contained in:
1 parent
79a9f283de
commit
c819ffee91
3 files changed
+10
-4
No files matched your search
+2
-2
@@ -901,7 +901,7 @@ sis900_transmit(struct nic *nic,
|
||||
const char *p) /* Packet */
|
||||
{
|
||||
u32 status, to, nstype;
|
||||
u32 tx_status;
|
||||
volatile u32 tx_status;
|
||||
|
||||
/* Stop the transmitter */
|
||||
outl(TxDIS, ioaddr + cr);
|
||||
@@ -940,7 +940,7 @@ sis900_transmit(struct nic *nic,
|
||||
|
||||
to = currticks() + TX_TIMEOUT;
|
||||
|
||||
while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
||||
while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
|
||||
/* wait */ ;
|
||||
|
||||
if (currticks() >= to) {
|
||||
|
||||
Reference in new issue
Block a user