patch-2.4.9 linux/drivers/isdn/eicon/xlog.c
Next file: linux/drivers/isdn/hisax/sedlbauer_cs.c
Previous file: linux/drivers/isdn/eicon/uxio.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sun Aug 12 11:16:18 2001
- Orig file:
v2.4.8/linux/drivers/isdn/eicon/xlog.c
- Orig date:
Fri Mar 2 11:12:08 2001
diff -u --recursive --new-file v2.4.8/linux/drivers/isdn/eicon/xlog.c linux/drivers/isdn/eicon/xlog.c
@@ -59,7 +59,7 @@
x = (card_xlog_t *) b;
- bzero(&klog, sizeof(klog));
+ memset(&klog, 0, sizeof(klog));
klog.time_stamp = (dword) x->time_hi;
klog.time_stamp = (klog.time_stamp << 16) | (dword) x->time_lo;
@@ -71,13 +71,13 @@
{
klog.type = KLOG_XTXT_MSG;
klog.code = 0;
- bcopy(&x->xcode, klog.buffer, klog.length);
+ memcpy(klog.buffer, &x->xcode, klog.length);
}
else if (x->code == 2)
{
klog.type = KLOG_XLOG_MSG;
klog.code = x->xcode;
- bcopy(&x->data, klog.buffer, klog.length);
+ memcpy(klog.buffer, &x->data, klog.length);
}
else
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)