patch-2.4.9 linux/drivers/isdn/eicon/log.c

Next file: linux/drivers/isdn/eicon/uxio.h
Previous file: linux/drivers/isdn/eicon/linsys.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/isdn/eicon/log.c linux/drivers/isdn/eicon/log.c
@@ -96,7 +96,7 @@
 	}
 
 	m_count++;
-	bzero(new_klog,sizeof(KNODE));
+	memset(new_klog, 0, sizeof(KNODE));
 
 	/* Set head & tail to point to the new Msg Struct */
 	head=tail=new_klog;
@@ -112,7 +112,7 @@
 	}
 
 	m_count++;
-	bzero(new_klog,sizeof(KNODE));
+	memset(new_klog, 0, sizeof(KNODE));
 
 	/* Let last Msg Struct point to new Msg Struct & inc tail */
 	tail->next=new_klog;
@@ -125,7 +125,7 @@
         length = sizeof(klog_t);
     }
 
-    bcopy(entry,&tail->klog,length);
+    memcpy(&tail->klog, entry, length);
 
     return;
 }
@@ -155,7 +155,7 @@
 {
 	klog_t		klog;
 
-	bzero(&klog, sizeof(klog));
+	memset(&klog, 0, sizeof(klog));
 
 	klog.time_stamp = UxTimeGet();
 
@@ -166,7 +166,7 @@
 
 	klog.type = request ? KLOG_IDI_REQ : KLOG_IDI_CALLBACK;
 	klog.code = 0;
-	bcopy(e, klog.buffer, klog.length);
+	memcpy(klog.buffer, e, klog.length);
 
     /* send to the log driver and return */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)