- bzero -> memset
text data bss dec hex filename
1652855
14444 1215616 2882915 2bfd63 busybox.oorig.gcc-3.3
1652823 14444 1215616 2882883 2bfd43 busybox.gcc-3.3
1603655 14412 1215552 2833619 2b3cd3 busybox.oorig.gcc-3.4
1603655 14412 1215552 2833619 2b3cd3 busybox.gcc-3.4
1609755 14508 1215744 2840007 2b55c7 busybox.oorig.gcc-4.0
1609755 14508 1215744 2840007 2b55c7 busybox.gcc-4.0
1590495 13516 1215392 2819403 2b054b busybox.oorig.gcc-4.1-HEAD
1590495 13516 1215392 2819403 2b054b busybox.gcc-4.1-HEAD
1589079 13036 1213248 2815363 2af583 busybox.oorig.gcc-4.2-HEAD
1589079 13036 1213248 2815363 2af583 busybox.gcc-4.2-HEAD
This commit is contained in:
@@ -1342,7 +1342,7 @@ xbsd_write_bootstrap (void)
|
||||
bcopy (d, &dl, 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],
|
||||
@@ -1457,7 +1457,7 @@ xbsd_initlabel (struct partition *p, struct xbsd_disklabel *d) {
|
||||
struct xbsd_partition *pp;
|
||||
|
||||
get_geometry ();
|
||||
bzero (d, sizeof (struct xbsd_disklabel));
|
||||
memset (d, 0, sizeof (struct xbsd_disklabel));
|
||||
|
||||
d -> d_magic = BSD_DISKMAGIC;
|
||||
|
||||
|
Reference in New Issue
Block a user