summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/ufs.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-10-07 19:48:30 +0000
committerguenther <guenther@openbsd.org>2017-10-07 19:48:30 +0000
commit5eaf1adbe4de5add95c9a507f348a9dfd7524086 (patch)
tree77c44f31ee08c8b2acb4d1a3dbac7dc72bc265d7 /usr.sbin/vmd/ufs.c
parentFormat fktrace(2) arguments (diff)
downloadwireguard-openbsd-5eaf1adbe4de5add95c9a507f348a9dfd7524086.tar.xz
wireguard-openbsd-5eaf1adbe4de5add95c9a507f348a9dfd7524086.zip
Prefer memset() over bzero()
ok deraadt@ mlarkin@
Diffstat (limited to 'usr.sbin/vmd/ufs.c')
-rw-r--r--usr.sbin/vmd/ufs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/vmd/ufs.c b/usr.sbin/vmd/ufs.c
index a9967c15f3a..03f6c77d94a 100644
--- a/usr.sbin/vmd/ufs.c
+++ b/usr.sbin/vmd/ufs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs.c,v 1.5 2017/08/29 21:10:20 deraadt Exp $ */
+/* $OpenBSD: ufs.c,v 1.6 2017/10/07 19:48:30 guenther Exp $ */
/* $NetBSD: ufs.c,v 1.16 1996/09/30 16:01:22 ws Exp $ */
/*-
@@ -283,7 +283,7 @@ buf_read_file(struct open_file *f, char **buf_p, size_t *size_p)
fp->f_buf = alloc(fs->fs_bsize);
if (disk_block == 0) {
- bzero(fp->f_buf, block_size);
+ memset(fp->f_buf, 0, block_size);
fp->f_buf_size = block_size;
} else {
twiddle();
@@ -375,7 +375,7 @@ ufs_open(char *path, struct open_file *f)
/* allocate file system specific data structure */
fp = alloc(sizeof(struct file));
- bzero(fp, sizeof(struct file));
+ memset(fp, 0, sizeof(struct file));
f->f_fsdata = (void *)fp;
/* allocate space and read super block */