diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-09-07 20:15:30 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-09-07 20:15:30 +0000 |
commit | d870eef11536ff9b8b1e057811aefade9c111bee (patch) | |
tree | 184f20f788a988ad8e41d7381ce037ff8277e6dd /sys/uvm/uvm_stat.h | |
parent | 653e038f4e286aadac796ed6c0cce53819bcb399 (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_stat.h')
-rw-r--r-- | sys/uvm/uvm_stat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_stat.h b/sys/uvm/uvm_stat.h index 5158e062d20..aed64567a9d 100644 --- a/sys/uvm/uvm_stat.h +++ b/sys/uvm/uvm_stat.h @@ -155,7 +155,7 @@ do { \ (NAME).e = (struct uvm_history_ent *) \ malloc(sizeof(struct uvm_history_ent) * (N), M_TEMP, \ M_WAITOK); \ - bzero((NAME).e, sizeof(struct uvm_history_ent) * (N)); \ + memset((NAME).e, 0, sizeof(struct uvm_history_ent) * (N)); \ LIST_INSERT_HEAD(&uvm_histories, &(NAME), list); \ } while (0) @@ -167,7 +167,7 @@ do { \ (NAME).f = 0; \ simple_lock_init(&(NAME).l); \ (NAME).e = (struct uvm_history_ent *) (BUF); \ - bzero((NAME).e, sizeof(struct uvm_history_ent) * (NAME).n); \ + memset((NAME).e, 0, sizeof(struct uvm_history_ent) * (NAME).n); \ LIST_INSERT_HEAD(&uvm_histories, &(NAME), list); \ } while (0) |