diff options
author | helg <helg@cvs.openbsd.org> | 2018-05-15 11:57:33 +0000 |
---|---|---|
committer | helg <helg@cvs.openbsd.org> | 2018-05-15 11:57:33 +0000 |
commit | cec6da6b0b5b544938fe192e69be08862e1f398c (patch) | |
tree | f1a44417d499f201fc88b30fa85949fea930a9bd /sys/miscfs/fuse/fuse_device.c | |
parent | fbc5f3ce94d765aeea8caa99a5831ddf76f1900a (diff) |
Use memset(3) instead of bzero(3) for consistency and as per POSIX
recommendation.
Diffstat (limited to 'sys/miscfs/fuse/fuse_device.c')
-rw-r--r-- | sys/miscfs/fuse/fuse_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/fuse/fuse_device.c b/sys/miscfs/fuse/fuse_device.c index 5bbde357c98..51953bbacda 100644 --- a/sys/miscfs/fuse/fuse_device.c +++ b/sys/miscfs/fuse/fuse_device.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_device.c,v 1.24 2018/01/22 13:16:48 helg Exp $ */ +/* $OpenBSD: fuse_device.c,v 1.25 2018/05/15 11:57:32 helg Exp $ */ /* * Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -101,11 +101,11 @@ fuse_dump_buff(char *buff, int len) return; } - bzero(text, 17); + memset(text, 0, 17); for (i = 0; i < len; i++) { if (i != 0 && (i % 16) == 0) { printf(": %s\n", text); - bzero(text, 17); + memset(text, 0, 17); } printf("%.2x ", buff[i] & 0xff); @@ -438,7 +438,7 @@ fuseread(dev_t dev, struct uio *uio, int ioflag) /* Do not send kernel pointers */ memcpy(&hdr.fh_next, &fbuf->fb_next, sizeof(fbuf->fb_next)); - bzero(&fbuf->fb_next, sizeof(fbuf->fb_next)); + memset(&fbuf->fb_next, 0, sizeof(fbuf->fb_next)); tmpaddr = fbuf->fb_dat; fbuf->fb_dat = NULL; error = uiomove(fbuf, FUSEBUFSIZE, uio); |