diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-23 15:25:42 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-01-23 15:25:42 +0000 |
commit | b2c0d8b6576b26631db7c450ac16c3776d80f476 (patch) | |
tree | 1c37e7aa18658a02b681d0dc34fba2d3f8219b6b /pciradio.c | |
parent | 0c56205a9a0d74562271fbaeddcabe91470f5f72 (diff) |
clean up various compiler warnings
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1920 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'pciradio.c')
-rw-r--r-- | pciradio.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -169,8 +169,8 @@ struct pciradio { volatile unsigned long ioaddr; dma_addr_t readdma; dma_addr_t writedma; - volatile int *writechunk; /* Double-word aligned write memory */ - volatile int *readchunk; /* Double-word aligned read memory */ + volatile unsigned int *writechunk; /* Double-word aligned write memory */ + volatile unsigned int *readchunk; /* Double-word aligned read memory */ unsigned char saudio_status[NUM_CHANS]; char gotcor[NUM_CHANS]; char gotct[NUM_CHANS]; @@ -539,7 +539,7 @@ unsigned long flags; static void _do_encdec(struct pciradio *rad) { int i,n; -unsigned char byte1,byte2; +unsigned char byte1 = 0, byte2 = 0; /* return doing nothing if busy */ if ((rad->encdec.lastcmd + 2) > jiffies) return; @@ -1260,7 +1260,7 @@ static int pciradio_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long if ((rad->rxindex < stack.p.data) && (rad->srxtimer < SRX_TIMEOUT) && ((rad->remmode[chan->chanpos - 1] == ZT_RADPAR_REM_SERIAL) || - (!strchr(rad->rxbuf,'\r')))) + (!strchr((char *) rad->rxbuf,'\r')))) { spin_unlock_irqrestore(&rad->lock,flags); interruptible_sleep_on_timeout(&mywait,2); @@ -1662,7 +1662,7 @@ static int __devinit pciradio_init_one(struct pci_dev *pdev, const struct pci_de /* Allocate enough memory for two zt chunks, receive and transmit. Each sample uses 32 bits. Allocate an extra set just for control too */ - rad->writechunk = (int *)pci_alloc_consistent(pdev, ZT_MAX_CHUNKSIZE * 2 * 2 * 2 * 4, &rad->writedma); + rad->writechunk = pci_alloc_consistent(pdev, ZT_MAX_CHUNKSIZE * 2 * 2 * 2 * 4, &rad->writedma); if (!rad->writechunk) { printk("pciradio: Unable to allocate DMA-able memory\n"); if (rad->freeregion) |