patch-2.4.9 linux/drivers/isdn/eicon/linchr.c
Next file: linux/drivers/isdn/eicon/linsys.c
Previous file: linux/drivers/isdn/eicon/lincfg.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Sun Aug 12 17:37:53 2001
- Orig file:
v2.4.8/linux/drivers/isdn/eicon/linchr.c
- Orig date:
Tue Jul 3 17:08:19 2001
diff -u --recursive --new-file v2.4.8/linux/drivers/isdn/eicon/linchr.c linux/drivers/isdn/eicon/linchr.c
@@ -37,7 +37,6 @@
extern int DivasCardNext;
void UxPause(long ms);
-void bcopy(void *pSource, void *pDest, dword dwLength);
int DivasGetMem(mem_block_t *);
#define DIA_IOCTL_UNLOCK 12
@@ -157,11 +156,8 @@
{
word wMask = 0;
- if (!DivasLogFifoEmpty())
- {
+ if (!DivasLogFifoEmpty())
wMask |= POLLIN | POLLRDNORM;
- }
-
return wMask;
}
@@ -174,14 +170,14 @@
{
printk(KERN_WARNING "Divas: Divalog buffer specifed a size that is too small (%d - %d required)\n",
BufferSize, sizeof(klog_t));
- return 0;
+ return -EIO;
}
pHeadItem = (klog_t *) DivasLogFifoRead();
if (pHeadItem)
{
- bcopy(pHeadItem, pClientLogBuffer, sizeof(klog_t));
+ memcpy(pClientLogBuffer, pHeadItem, sizeof(klog_t));
kfree(pHeadItem);
return sizeof(klog_t);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)