summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-getfh.c2
-rw-r--r--libdiskfs/file-statfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-getfh.c b/libdiskfs/file-getfh.c
index 035705b5..e4bc8921 100644
--- a/libdiskfs/file-getfh.c
+++ b/libdiskfs/file-getfh.c
@@ -50,7 +50,7 @@ diskfs_S_file_getfh (struct protid *cred, char **fh, size_t *fh_len)
f = (union diskfs_fhandle *) *fh;
- bzero (f, sizeof *f);
+ memset (f, 0, sizeof *f);
f->data.cache_id = node->cache_id;
f->data.gen = node->dn_stat.st_gen;
diff --git a/libdiskfs/file-statfs.c b/libdiskfs/file-statfs.c
index 9d97ce66..c9fd6f1b 100644
--- a/libdiskfs/file-statfs.c
+++ b/libdiskfs/file-statfs.c
@@ -31,7 +31,7 @@ diskfs_S_file_statfs (struct protid *file,
/* Start will all zeros, so the fs can skip fields for which
it has no information to contribute. */
- bzero (statbuf, sizeof *statbuf);
+ memset (statbuf, 0, sizeof *statbuf);
if (diskfs_readonly)
statbuf->f_flag |= ST_RDONLY;