Changeset 764


Ignore:
Timestamp:
2005-04-29T19:50:19+02:00 (13 years ago)
Author:
nbd
Message:

add some gcc 4.0 fixes

Location:
trunk/openwrt/package/linux
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/linux/kernel-source/drivers/net/hnd/bcmutils.c

    r379 r764  
    746746    pend = pdata + (nbytes & 0xfffffffc); 
    747747    while (pdata < pend) { 
    748         *tptr = *((ulong *)pdata)++; 
     748        *tptr = (*((ulong *)pdata))++; 
    749749        CRC_INNER_LOOP(32, crc, tmp[0]); 
    750750        CRC_INNER_LOOP(32, crc, tmp[1]); 
  • trunk/openwrt/package/linux/kernel-source/drivers/net/hnd/sbutils.c

    r379 r764  
    137137                tmp = 1; 
    138138                OSL_PCMCIA_WRITE_ATTR(si->osh, MEM_SEG, &tmp, 1); 
    139                 (uint32)sbr &= ~(1 << 11);      /* mask out bit 11*/ 
     139                sbr = (uint32 *) (((uint32) sbr) & ~(1 << 11)); /* mask out bit 11*/ 
    140140        } 
    141141 
     
    171171                tmp = 1; 
    172172                OSL_PCMCIA_WRITE_ATTR(si->osh, MEM_SEG, &tmp, 1); 
    173                 (uint32)sbr &= ~(1 << 11);      /* mask out bit 11 */ 
     173                sbr = (uint32 *) (((uint32) sbr) & ~(1 << 11)); /* mask out bit 11*/ 
    174174        } 
    175175 
Note: See TracChangeset for help on using the changeset viewer.