summaryrefslogtreecommitdiff
path: root/ftpfs
diff options
context:
space:
mode:
Diffstat (limited to 'ftpfs')
-rw-r--r--ftpfs/dir.c4
-rw-r--r--ftpfs/netfs.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ftpfs/dir.c b/ftpfs/dir.c
index a9fea22f..be20b3db 100644
--- a/ftpfs/dir.c
+++ b/ftpfs/dir.c
@@ -64,7 +64,7 @@ rehash (struct ftpfs_dir *dir, size_t new_len)
if (! new_htable)
return ENOMEM;
- bzero (new_htable, new_len * sizeof (struct ftpfs_dir_entry *));
+ memset (new_htable, 0, new_len * sizeof(struct ftpfs_dir_entry *));
for (i = 0; i < old_len; i++)
while (old_htable[i])
@@ -124,7 +124,7 @@ lookup (struct ftpfs_dir *dir, const char *name, int add)
e->node = 0;
e->dir = dir;
e->stat_timestamp = 0;
- bzero (&e->stat, sizeof e->stat);
+ memset (&e->stat, 0, sizeof e->stat);
e->symlink_target = 0;
e->noent = 0;
e->valid = 0;
diff --git a/ftpfs/netfs.c b/ftpfs/netfs.c
index 5359acb9..cf5d9079 100644
--- a/ftpfs/netfs.c
+++ b/ftpfs/netfs.c
@@ -385,7 +385,7 @@ error_t
netfs_attempt_statfs (struct iouser *cred, struct node *node,
struct statfs *st)
{
- bzero (st, sizeof *st);
+ memset (st, 0, sizeof *st);
st->f_type = FSTYPE_FTP;
st->f_fsid = getpid ();
return 0;