summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/smc91111.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/smc91111.c b/drivers/smc91111.c
index 62d2133..6244b4e 100644
--- a/drivers/smc91111.c
+++ b/drivers/smc91111.c
@@ -771,7 +771,7 @@ static int smc_rcv()
if (packet_length & 3) {
int i;
- byte *tail = NetRxPackets[0] + (packet_length & ~3);
+ byte *tail = (byte *)(NetRxPackets[0] + (packet_length & ~3));
dword leftover = SMC_inl(SMC91111_DATA_REG);
for (i=0; i<(packet_length & 3); i++)
*tail++ = (byte) (leftover >> (8*i)) & 0xff;