win-pvdrivers

changeset 131:415597314479

xennet: fix 2 warnings (don't know why they didn't show up before)
author Andy Grover <andy.grover@oracle.com>
date Thu Jan 17 12:25:54 2008 -0800 (2008-01-17)
parents 1c286bc336b0
children 1f482a9da56e
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Thu Jan 17 12:20:28 2008 -0800
     1.2 +++ b/xennet/xennet.c	Thu Jan 17 12:25:54 2008 -0800
     1.3 @@ -155,7 +155,7 @@ static void
     1.4  add_id_to_freelist(struct xennet_info *xi, unsigned short id)
     1.5  {
     1.6    xi->tx_pkts[id] = xi->tx_pkts[0];
     1.7 -  xi->tx_pkts[0]  = (void *)id;
     1.8 +  xi->tx_pkts[0]  = (void *)(int)id;
     1.9    xi->tx_pkt_ids_used--;
    1.10  }
    1.11  
    1.12 @@ -779,7 +779,7 @@ XenNet_Init(
    1.13  
    1.14    /* Initialize tx_pkts as a free chain containing every entry. */
    1.15    for (i = 0; i < NET_TX_RING_SIZE+1; i++) {
    1.16 -    xi->tx_pkts[i] = i + 1;
    1.17 +    xi->tx_pkts[i] = (PNDIS_PACKET)(i + 1);
    1.18      xi->grant_tx_ref[i] = GRANT_INVALID_REF;
    1.19    }
    1.20