diff options
author | Jon Ringle | 2010-03-26 03:42:52 +0100 |
---|---|---|
committer | Karel Zak | 2010-03-31 17:23:32 +0200 |
commit | 56054a79fa3c37894a9f1ab4d7b50d8b5ff82fc4 (patch) | |
tree | f128a75c69bd4a1d6d1542edb5c764a2d37b54c7 /fdisk/fdiskbsdlabel.c | |
parent | docs: update tests/README (diff) | |
download | kernel-qcow2-util-linux-56054a79fa3c37894a9f1ab4d7b50d8b5ff82fc4.tar.gz kernel-qcow2-util-linux-56054a79fa3c37894a9f1ab4d7b50d8b5ff82fc4.tar.xz kernel-qcow2-util-linux-56054a79fa3c37894a9f1ab4d7b50d8b5ff82fc4.zip |
fdisk: replace bzero with memset
Work on this was done in commit c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed,
however a couple of bzero call sites were missed
Signed-off-by: Jon Ringle <jon@ringle.org>
Diffstat (limited to 'fdisk/fdiskbsdlabel.c')
-rw-r--r-- | fdisk/fdiskbsdlabel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisk/fdiskbsdlabel.c b/fdisk/fdiskbsdlabel.c index 2f4156161..9c0925242 100644 --- a/fdisk/fdiskbsdlabel.c +++ b/fdisk/fdiskbsdlabel.c @@ -540,7 +540,7 @@ xbsd_write_bootstrap (void) memmove (&dl, d, sizeof (struct xbsd_disklabel)); /* The disklabel will be overwritten by 0's from bootxx anyway */ - bzero (d, sizeof (struct xbsd_disklabel)); + memset (d, 0, sizeof (struct xbsd_disklabel)); snprintf (path, sizeof(path), "%s/boot%s", bootdir, dkbasename); if (!xbsd_get_bootstrap (path, &disklabelbuffer[xbsd_dlabel.d_secsize], @@ -656,7 +656,7 @@ xbsd_initlabel (struct partition *p, struct xbsd_disklabel *d, int pindex) { struct geom g; get_geometry (fd, &g); - bzero (d, sizeof (struct xbsd_disklabel)); + memset (d, 0, sizeof (struct xbsd_disklabel)); d -> d_magic = BSD_DISKMAGIC; |