aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Robert P. J. Day" <rpjday@mindspring.com>2006-07-01 14:34:33 +0000
committer"Robert P. J. Day" <rpjday@mindspring.com>2006-07-01 14:34:33 +0000
commit53f21e34a7765c74afab1a8867f4965fb981edb7 (patch)
treeb09fef7da3022788ce9a8e4bd8bab23473bbf297
parent177c9f312829d5932a798a8e2c8f6feea1a8b8d5 (diff)
downloadbusybox-w32-53f21e34a7765c74afab1a8867f4965fb981edb7.tar.gz
busybox-w32-53f21e34a7765c74afab1a8867f4965fb981edb7.tar.bz2
busybox-w32-53f21e34a7765c74afab1a8867f4965fb981edb7.zip
Remove "#if 0" content.
-rw-r--r--util-linux/fdisk.c28
-rw-r--r--util-linux/mkswap.c4
2 files changed, 0 insertions, 32 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index c0828431a..872581ca2 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -1443,10 +1443,6 @@ xbsd_initlabel(struct partition *p, struct xbsd_disklabel *d)
1443 else 1443 else
1444 d->d_type = BSD_DTYPE_ST506; 1444 d->d_type = BSD_DTYPE_ST506;
1445 1445
1446#if 0 /* not used (at least not written to disk) by NetBSD/i386 1.0 */
1447 d->d_subtype = BSD_DSTYPE_INDOSPART & pindex;
1448#endif
1449
1450#if !defined (__alpha__) 1446#if !defined (__alpha__)
1451 d->d_flags = BSD_D_DOSPART; 1447 d->d_flags = BSD_D_DOSPART;
1452#else 1448#else
@@ -2605,14 +2601,10 @@ sun_autoconfigure_scsi(void)
2605 if (!ioctl(fd, SCSI_IOCTL_GET_IDLUN, &id)) { 2601 if (!ioctl(fd, SCSI_IOCTL_GET_IDLUN, &id)) {
2606 sprintf(buffer, 2602 sprintf(buffer,
2607 "Host: scsi%d Channel: %02d Id: %02d Lun: %02d\n", 2603 "Host: scsi%d Channel: %02d Id: %02d Lun: %02d\n",
2608#if 0
2609 ((id[0]>>24)&0xff)-/*PROC_SCSI_SCSI+PROC_SCSI_FILE*/33,
2610#else
2611 /* This is very wrong (works only if you have one HBA), 2604 /* This is very wrong (works only if you have one HBA),
2612 but I haven't found a way how to get hostno 2605 but I haven't found a way how to get hostno
2613 from the current kernel */ 2606 from the current kernel */
2614 0, 2607 0,
2615#endif
2616 (id[0]>>16) & 0xff, 2608 (id[0]>>16) & 0xff,
2617 id[0] & 0xff, 2609 id[0] & 0xff,
2618 (id[0]>>8) & 0xff 2610 (id[0]>>8) & 0xff
@@ -4645,25 +4637,10 @@ check_consistency(const struct partition *p, int partition)
4645 printf(_("logical=(%d, %d, %d)\n"),lec, leh, les); 4637 printf(_("logical=(%d, %d, %d)\n"),lec, leh, les);
4646 } 4638 }
4647 4639
4648#if 0
4649/* Beginning on cylinder boundary? */
4650 if (pbh != !pbc || pbs != 1) {
4651 printf(_("Partition %i does not start on cylinder "
4652 "boundary:\n"), partition + 1);
4653 printf(_(" phys=(%d, %d, %d) "), pbc, pbh, pbs);
4654 printf(_("should be (%d, %d, 1)\n"), pbc, !pbc);
4655 }
4656#endif
4657
4658/* Ending on cylinder boundary? */ 4640/* Ending on cylinder boundary? */
4659 if (peh != (heads - 1) || pes != sectors) { 4641 if (peh != (heads - 1) || pes != sectors) {
4660 printf(_("Partition %i does not end on cylinder boundary.\n"), 4642 printf(_("Partition %i does not end on cylinder boundary.\n"),
4661 partition + 1); 4643 partition + 1);
4662#if 0
4663 printf(_(" phys=(%d, %d, %d) "), pec, peh, pes);
4664 printf(_("should be (%d, %d, %d)\n"),
4665 pec, heads - 1, sectors);
4666#endif
4667 } 4644 }
4668} 4645}
4669 4646
@@ -5737,14 +5714,9 @@ int fdisk_main(int argc, char **argv)
5737 } 5714 }
5738 } 5715 }
5739 5716
5740#if 0
5741 printf(_("This kernel finds the sector size itself - "
5742 "-b option ignored\n"));
5743#else
5744 if (user_set_sector_size && argc-optind != 1) 5717 if (user_set_sector_size && argc-optind != 1)
5745 printf(_("Warning: the -b (set sector size) option should" 5718 printf(_("Warning: the -b (set sector size) option should"
5746 " be used with one specified device\n")); 5719 " be used with one specified device\n"));
5747#endif
5748 5720
5749#ifdef CONFIG_FEATURE_FDISK_WRITABLE 5721#ifdef CONFIG_FEATURE_FDISK_WRITABLE
5750 if (optl) { 5722 if (optl) {
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index b48d1f036..986472e92 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -312,9 +312,6 @@ int mkswap_main(int argc, char **argv)
312 PAGES = sz; 312 PAGES = sz;
313 } 313 }
314 314
315#if 0
316 maxpages = ((version == 0) ? V0_MAX_PAGES : V1_MAX_PAGES);
317#else
318 if (!version) 315 if (!version)
319 maxpages = V0_MAX_PAGES; 316 maxpages = V0_MAX_PAGES;
320 else if (get_linux_version_code() >= KERNEL_VERSION(2,2,1)) 317 else if (get_linux_version_code() >= KERNEL_VERSION(2,2,1))
@@ -324,7 +321,6 @@ int mkswap_main(int argc, char **argv)
324 if (maxpages > V1_MAX_PAGES) 321 if (maxpages > V1_MAX_PAGES)
325 maxpages = V1_MAX_PAGES; 322 maxpages = V1_MAX_PAGES;
326 } 323 }
327#endif
328 if (PAGES > maxpages) { 324 if (PAGES > maxpages) {
329 PAGES = maxpages; 325 PAGES = maxpages;
330 bb_error_msg("warning: truncating swap area to %ldkB", 326 bb_error_msg("warning: truncating swap area to %ldkB",