patch-2.4.20 linux-2.4.20/drivers/telephony/ixj.c
Next file: linux-2.4.20/drivers/usb/CDCEther.c
Previous file: linux-2.4.20/drivers/tc/zs.h
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Thu Nov 28 15:53:14 2002
- Orig file:
linux-2.4.19/drivers/telephony/ixj.c
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/telephony/ixj.c linux-2.4.20/drivers/telephony/ixj.c
@@ -2807,7 +2807,10 @@
};
while (len--)
- *buff++ = table_ulaw2alaw[*(unsigned char *)buff];
+ {
+ *buff = table_ulaw2alaw[*(unsigned char *)buff];
+ buff++;
+ }
}
static void alaw2ulaw(unsigned char *buff, unsigned long len)
@@ -2849,7 +2852,10 @@
};
while (len--)
- *buff++ = table_alaw2ulaw[*(unsigned char *)buff];
+ {
+ *buff = table_alaw2ulaw[*(unsigned char *)buff];
+ buff++;
+ }
}
static ssize_t ixj_read(struct file * file_p, char *buf, size_t length, loff_t * ppos)
@@ -5944,7 +5950,7 @@
lcp = kmalloc(sizeof(IXJ_CADENCE), GFP_KERNEL);
if (lcp == NULL)
return -ENOMEM;
- if (copy_from_user(lcp, (char *) cp, sizeof(IXJ_CADENCE)) || (unsigned)lcp->elements_used >= ~0U/sizeof(IXJ_CADENCE) )
+ if (copy_from_user(lcp, (char *) cp, sizeof(IXJ_CADENCE)) || (unsigned)lcp->elements_used >= ~0U/sizeof(IXJ_CADENCE_ELEMENT) )
{
kfree(lcp);
return -EFAULT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)