diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-31 17:57:48 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-31 17:57:48 +0000 |
commit | 3038557649ae04860213ab264ff0f647103e5083 (patch) | |
tree | 129ac6598e5dc72b75062249ce7b78725c85c388 /util-linux | |
parent | 87be316149604ca18613acb1a776ea4ea9f07929 (diff) | |
download | busybox-w32-3038557649ae04860213ab264ff0f647103e5083.tar.gz busybox-w32-3038557649ae04860213ab264ff0f647103e5083.tar.bz2 busybox-w32-3038557649ae04860213ab264ff0f647103e5083.zip |
- 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
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/fdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 886b2695b..0514b8935 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -1342,7 +1342,7 @@ xbsd_write_bootstrap (void) | |||
1342 | bcopy (d, &dl, sizeof (struct xbsd_disklabel)); | 1342 | bcopy (d, &dl, sizeof (struct xbsd_disklabel)); |
1343 | 1343 | ||
1344 | /* The disklabel will be overwritten by 0's from bootxx anyway */ | 1344 | /* The disklabel will be overwritten by 0's from bootxx anyway */ |
1345 | bzero (d, sizeof (struct xbsd_disklabel)); | 1345 | memset (d, 0, sizeof (struct xbsd_disklabel)); |
1346 | 1346 | ||
1347 | snprintf (path, sizeof(path), "%s/boot%s", bootdir, dkbasename); | 1347 | snprintf (path, sizeof(path), "%s/boot%s", bootdir, dkbasename); |
1348 | if (!xbsd_get_bootstrap (path, &disklabelbuffer[xbsd_dlabel.d_secsize], | 1348 | if (!xbsd_get_bootstrap (path, &disklabelbuffer[xbsd_dlabel.d_secsize], |
@@ -1457,7 +1457,7 @@ xbsd_initlabel (struct partition *p, struct xbsd_disklabel *d) { | |||
1457 | struct xbsd_partition *pp; | 1457 | struct xbsd_partition *pp; |
1458 | 1458 | ||
1459 | get_geometry (); | 1459 | get_geometry (); |
1460 | bzero (d, sizeof (struct xbsd_disklabel)); | 1460 | memset (d, 0, sizeof (struct xbsd_disklabel)); |
1461 | 1461 | ||
1462 | d -> d_magic = BSD_DISKMAGIC; | 1462 | d -> d_magic = BSD_DISKMAGIC; |
1463 | 1463 | ||