Ignore:
Timestamp:
Jun 13, 2007, 9:06:25 AM (18 years ago)
Author:
stevenhl
Message:

Get rid of spurious warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/synth/emux/soundfont.c

    r77 r135  
    142142
    143143        count -= sizeof(patch);
    144         (char*)data += sizeof(patch);
     144        data = (char*)data + sizeof(patch);
    145145
    146146        if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) {
     
    539539                return -EFAULT;
    540540       
    541         (char*)data += sizeof(hdr);
     541        data = (char*)data + sizeof(hdr);
    542542        count -= sizeof(hdr);
    543543
    544         if (hdr.nvoices <= 0 || hdr.nvoices >= 100) {
     544        if ((signed char)hdr.nvoices <= 0 || hdr.nvoices >= 100) {
    545545                printk("Soundfont error: Illegal voice number %d\n", hdr.nvoices);
    546546                return -EINVAL;
     
    578578                }
    579579
    580                 (char*)data += sizeof(tmpzone.v);
     580                data = (char*)data + sizeof(tmpzone.v);
    581581                count -= sizeof(tmpzone.v);
    582582
Note: See TracChangeset for help on using the changeset viewer.