mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
remove unused argument to print_s0()
Submitted by: Christoph Mallon MFC after: 3 days
This commit is contained in:
parent
8c7494de12
commit
fbcb16efdf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187239
@ -216,7 +216,7 @@ static struct part_type
|
|||||||
,{0xFF, "Xenix bad blocks table"}
|
,{0xFF, "Xenix bad blocks table"}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void print_s0(int which);
|
static void print_s0(void);
|
||||||
static void print_part(int i);
|
static void print_part(int i);
|
||||||
static void init_sector0(unsigned long start);
|
static void init_sector0(unsigned long start);
|
||||||
static void init_boot(void);
|
static void init_boot(void);
|
||||||
@ -373,7 +373,7 @@ main(int argc, char *argv[])
|
|||||||
dos_sectors;
|
dos_sectors;
|
||||||
dos(partp);
|
dos(partp);
|
||||||
if (v_flag)
|
if (v_flag)
|
||||||
print_s0(-1);
|
print_s0();
|
||||||
if (!t_flag)
|
if (!t_flag)
|
||||||
write_s0();
|
write_s0();
|
||||||
exit(0);
|
exit(0);
|
||||||
@ -384,7 +384,7 @@ main(int argc, char *argv[])
|
|||||||
if (!read_config(f_flag))
|
if (!read_config(f_flag))
|
||||||
exit(1);
|
exit(1);
|
||||||
if (v_flag)
|
if (v_flag)
|
||||||
print_s0(-1);
|
print_s0();
|
||||||
if (!t_flag)
|
if (!t_flag)
|
||||||
write_s0();
|
write_s0();
|
||||||
} else {
|
} else {
|
||||||
@ -416,7 +416,7 @@ main(int argc, char *argv[])
|
|||||||
printf("\nWe haven't changed the partition table yet. ");
|
printf("\nWe haven't changed the partition table yet. ");
|
||||||
printf("This is your last chance.\n");
|
printf("This is your last chance.\n");
|
||||||
}
|
}
|
||||||
print_s0(-1);
|
print_s0();
|
||||||
if (!t_flag) {
|
if (!t_flag) {
|
||||||
if (ok("Should we write new partition table?"))
|
if (ok("Should we write new partition table?"))
|
||||||
write_s0();
|
write_s0();
|
||||||
@ -439,17 +439,14 @@ usage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_s0(int which)
|
print_s0(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
print_params();
|
print_params();
|
||||||
printf("Information from DOS bootblock is:\n");
|
printf("Information from DOS bootblock is:\n");
|
||||||
if (which == -1)
|
for (i = 1; i <= NDOSPART; i++)
|
||||||
for (i = 1; i <= NDOSPART; i++)
|
printf("%d: ", i), print_part(i);
|
||||||
printf("%d: ", i), print_part(i);
|
|
||||||
else
|
|
||||||
print_part(which);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dos_partition mtpart;
|
static struct dos_partition mtpart;
|
||||||
@ -872,7 +869,7 @@ write_s0()
|
|||||||
int sector, i;
|
int sector, i;
|
||||||
|
|
||||||
if (iotest) {
|
if (iotest) {
|
||||||
print_s0(-1);
|
print_s0();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
for(i = 0; i < NDOSPART; i++)
|
for(i = 0; i < NDOSPART; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user