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 /lib/libfuse/fuse.c | |
parent | fbc5f3ce94d765aeea8caa99a5831ddf76f1900a (diff) |
Use memset(3) instead of bzero(3) for consistency and as per POSIX
recommendation.
Diffstat (limited to 'lib/libfuse/fuse.c')
-rw-r--r-- | lib/libfuse/fuse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libfuse/fuse.c b/lib/libfuse/fuse.c index 73426e54351..065c38c0cb7 100644 --- a/lib/libfuse/fuse.c +++ b/lib/libfuse/fuse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse.c,v 1.43 2017/12/18 14:20:23 helg Exp $ */ +/* $OpenBSD: fuse.c,v 1.44 2018/05/15 11:57:32 helg Exp $ */ /* * Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -296,7 +296,7 @@ fuse_mount(const char *dir, struct fuse_args *args) goto bad; } - bzero(&opts, sizeof(opts)); + memset(&opts, 0, sizeof(opts)); if (fuse_opt_parse(args, &opts, fuse_mount_opts, NULL) == -1) goto bad; @@ -312,7 +312,7 @@ fuse_mount(const char *dir, struct fuse_args *args) goto bad; } - bzero(&fargs, sizeof(fargs)); + memset(&fargs, 0, sizeof(fargs)); fargs.fd = fc->fd; fargs.max_read = opts.max_read; @@ -567,7 +567,7 @@ fuse_parse_cmdline(struct fuse_args *args, char **mp, int *mt, int *fg) { struct fuse_core_opts opt; - bzero(&opt, sizeof(opt)); + memset(&opt, 0, sizeof(opt)); if (fuse_opt_parse(args, &opt, fuse_core_opts, ifuse_process_opt) == -1) return (-1); |