summaryrefslogtreecommitdiff
path: root/device/cirbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'device/cirbuf.c')
-rw-r--r--device/cirbuf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/device/cirbuf.c b/device/cirbuf.c
index 9653168..c6ca196 100644
--- a/device/cirbuf.c
+++ b/device/cirbuf.c
@@ -30,6 +30,7 @@
* Circular buffers for TTY
*/
+#include <string.h>
#include <device/cirbuf.h>
#include <kern/kalloc.h>
@@ -143,7 +144,7 @@ q_to_b( register struct cirbuf *cb,
i = cb->c_cl - cb->c_cf;
if (i > count)
i = count;
- bcopy(cb->c_cf, cp, i);
+ memcpy(cp, cb->c_cf, i);
cp += i;
count -= i;
cb->c_cf += i;
@@ -184,7 +185,7 @@ b_to_q( register char * cp,
if (i > count)
i = count;
- bcopy(cp, cb->c_cl, i);
+ memcpy(cb->c_cl, cp, i);
cp += i;
count -= i;
cb->c_cc += i;