summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi/dev/impact.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-06-11 18:15:52 +0000
committerderaadt <deraadt@openbsd.org>2013-06-11 18:15:52 +0000
commit8f51fbe3a21efc5f13ea489d38168f80cc9e9147 (patch)
tree1120b748f7ec1d34b1fafbbfa8e1b9b33131fe31 /sys/arch/sgi/dev/impact.c
parentregen (diff)
downloadwireguard-openbsd-8f51fbe3a21efc5f13ea489d38168f80cc9e9147.tar.xz
wireguard-openbsd-8f51fbe3a21efc5f13ea489d38168f80cc9e9147.zip
Replace all ovbcopy with memmove; swap the src and dst arguments too
ok otto
Diffstat (limited to 'sys/arch/sgi/dev/impact.c')
-rw-r--r--sys/arch/sgi/dev/impact.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sgi/dev/impact.c b/sys/arch/sgi/dev/impact.c
index 023ddd88913..6084a52e272 100644
--- a/sys/arch/sgi/dev/impact.c
+++ b/sys/arch/sgi/dev/impact.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: impact.c,v 1.2 2012/04/19 21:02:27 miod Exp $ */
+/* $OpenBSD: impact.c,v 1.3 2013/06/11 18:15:55 deraadt Exp $ */
/*
* Copyright (c) 2010, 2012 Miodrag Vallat.
@@ -633,7 +633,7 @@ impact_copycols(void *cookie, int row, int src, int dst, int num)
/* Copy columns in backing store. */
cell = scr->bs + row * ri->ri_cols;
- ovbcopy(cell + src, cell + dst,
+ memmove(cell + dst, cell + src,
num * sizeof(struct wsdisplay_charcell));
/* Repaint affected area */
@@ -681,7 +681,7 @@ impact_copyrows(void *cookie, int src, int dst, int num)
/* Copy rows in backing store. */
cell = scr->bs + dst * ri->ri_cols;
- ovbcopy(scr->bs + src * ri->ri_cols, cell,
+ memmove(cell, scr->bs + src * ri->ri_cols,
num * ri->ri_cols * sizeof(struct wsdisplay_charcell));
/* Repaint affected area */
@@ -708,8 +708,8 @@ impact_eraserows(void *cookie, int row, int num, long attr)
cell->attr = attr;
}
for (y = 1; y < num; y++)
- ovbcopy(scr->bs + row * ri->ri_cols,
- scr->bs + (row + y) * ri->ri_cols,
+ memmove(scr->bs + (row + y) * ri->ri_cols,
+ scr->bs + row * ri->ri_cols,
ri->ri_cols * sizeof(struct wsdisplay_charcell));
ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);