summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_aobj.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-09-07 20:15:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-09-07 20:15:30 +0000
commitd870eef11536ff9b8b1e057811aefade9c111bee (patch)
tree184f20f788a988ad8e41d7381ce037ff8277e6dd /sys/uvm/uvm_aobj.c
parent653e038f4e286aadac796ed6c0cce53819bcb399 (diff)
Convert bzero to memset(X, 0..) and bcopy to memcpy.
This is to match (make diffs smaller) the code in NetBSD. new gcc inlines those functions, so this could also be a performance win.
Diffstat (limited to 'sys/uvm/uvm_aobj.c')
-rw-r--r--sys/uvm/uvm_aobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_aobj.c b/sys/uvm/uvm_aobj.c
index 727b72006d7..f91ad96f0b3 100644
--- a/sys/uvm/uvm_aobj.c
+++ b/sys/uvm/uvm_aobj.c
@@ -263,7 +263,7 @@ uao_find_swhash_elt(aobj, pageidx, create)
LIST_INSERT_HEAD(swhash, elt, list);
elt->tag = page_tag;
elt->count = 0;
- bzero(elt->slots, sizeof(elt->slots));
+ memset(elt->slots, 0, sizeof(elt->slots));
return(elt);
}
@@ -540,7 +540,7 @@ uao_create(size, flags)
M_UVMAOBJ, mflags);
if (aobj->u_swslots == NULL)
panic("uao_create: malloc swslots failed");
- bzero(aobj->u_swslots, pages * sizeof(int));
+ memset(aobj->u_swslots, 0, pages * sizeof(int));
}
if (flags) {