]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/zed/agents/fmd_serd.c
Remove bcopy(), bzero(), bcmp()
[mirror_zfs.git] / cmd / zed / agents / fmd_serd.c
index d4ec37fb7691018830b0960373449cbe06d552b0..497dffe7f967fd74f5b90a665239b9790195f5e5 100644 (file)
@@ -74,7 +74,7 @@ fmd_serd_eng_alloc(const char *name, uint64_t n, hrtime_t t)
        fmd_serd_eng_t *sgp;
 
        sgp = malloc(sizeof (fmd_serd_eng_t));
-       bzero(sgp, sizeof (fmd_serd_eng_t));
+       memset(sgp, 0, sizeof (fmd_serd_eng_t));
 
        sgp->sg_name = strdup(name);
        sgp->sg_flags = FMD_SERD_DIRTY;
@@ -139,7 +139,7 @@ fmd_serd_hash_destroy(fmd_serd_hash_t *shp)
        }
 
        free(shp->sh_hash);
-       bzero(shp, sizeof (fmd_serd_hash_t));
+       memset(shp, 0, sizeof (fmd_serd_hash_t));
 }
 
 void