svn commit: r187239 - head/sbin/fdisk
Luigi Rizzo
luigi at FreeBSD.org
Wed Jan 14 12:53:47 PST 2009
Author: luigi
Date: Wed Jan 14 20:53:46 2009
New Revision: 187239
URL: http://svn.freebsd.org/changeset/base/187239
Log:
remove unused argument to print_s0()
Submitted by: Christoph Mallon
MFC after: 3 days
Modified:
head/sbin/fdisk/fdisk.c
Modified: head/sbin/fdisk/fdisk.c
==============================================================================
--- head/sbin/fdisk/fdisk.c Wed Jan 14 20:36:58 2009 (r187238)
+++ head/sbin/fdisk/fdisk.c Wed Jan 14 20:53:46 2009 (r187239)
@@ -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++)
More information about the svn-src-head
mailing list