summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-01-14 20:53:46 +0000
committerluigi <luigi@FreeBSD.org>2009-01-14 20:53:46 +0000
commit0181d688119c32044f6738434330908d4c88839e (patch)
tree1b01d404c16d0cd721b057ea37c6572fc7aff565
parenta690f8b5cbaaa836be2833be147e531916d68efe (diff)
downloadFreeBSD-src-0181d688119c32044f6738434330908d4c88839e.zip
FreeBSD-src-0181d688119c32044f6738434330908d4c88839e.tar.gz
remove unused argument to print_s0()
Submitted by: Christoph Mallon MFC after: 3 days
-rw-r--r--sbin/fdisk/fdisk.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index 8964ad3..fc310fd 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -216,7 +216,7 @@ static struct part_type
,{0xFF, "Xenix bad blocks table"}
};
-static void print_s0(int which);
+static void print_s0(void);
static void print_part(int i);
static void init_sector0(unsigned long start);
static void init_boot(void);
@@ -373,7 +373,7 @@ main(int argc, char *argv[])
dos_sectors;
dos(partp);
if (v_flag)
- print_s0(-1);
+ print_s0();
if (!t_flag)
write_s0();
exit(0);
@@ -384,7 +384,7 @@ main(int argc, char *argv[])
if (!read_config(f_flag))
exit(1);
if (v_flag)
- print_s0(-1);
+ print_s0();
if (!t_flag)
write_s0();
} else {
@@ -416,7 +416,7 @@ main(int argc, char *argv[])
printf("\nWe haven't changed the partition table yet. ");
printf("This is your last chance.\n");
}
- print_s0(-1);
+ print_s0();
if (!t_flag) {
if (ok("Should we write new partition table?"))
write_s0();
@@ -439,17 +439,14 @@ usage()
}
static void
-print_s0(int which)
+print_s0(void)
{
int i;
print_params();
printf("Information from DOS bootblock is:\n");
- if (which == -1)
- for (i = 1; i <= NDOSPART; i++)
- printf("%d: ", i), print_part(i);
- else
- print_part(which);
+ for (i = 1; i <= NDOSPART; i++)
+ printf("%d: ", i), print_part(i);
}
static struct dos_partition mtpart;
@@ -872,7 +869,7 @@ write_s0()
int sector, i;
if (iotest) {
- print_s0(-1);
+ print_s0();
return 0;
}
for(i = 0; i < NDOSPART; i++)
OpenPOWER on IntegriCloud