fdisk: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39726
This commit is contained in:
parent
76318a013d
commit
0a04bb7a4f
@ -449,7 +449,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
static void
|
||||
usage()
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "%s%s",
|
||||
"usage: fdisk [-BIaipqstu] [-b bootcode] [-1234] [disk]\n",
|
||||
@ -610,7 +610,7 @@ change_part(int i)
|
||||
}
|
||||
|
||||
static void
|
||||
print_params()
|
||||
print_params(void)
|
||||
{
|
||||
printf("parameters extracted from in-core disklabel are:\n");
|
||||
printf("cylinders=%d heads=%d sectors/track=%d (%d blks/cyl)\n\n"
|
||||
@ -661,14 +661,14 @@ change_active(int which)
|
||||
}
|
||||
|
||||
static void
|
||||
change_code()
|
||||
change_code(void)
|
||||
{
|
||||
if (ok("Do you want to change the boot code?"))
|
||||
init_boot();
|
||||
}
|
||||
|
||||
void
|
||||
get_params_to_use()
|
||||
get_params_to_use(void)
|
||||
{
|
||||
int tmp;
|
||||
print_params();
|
||||
@ -807,7 +807,7 @@ write_disk(off_t sector, void *buf)
|
||||
}
|
||||
|
||||
static int
|
||||
get_params()
|
||||
get_params(void)
|
||||
{
|
||||
int error;
|
||||
u_int u;
|
||||
@ -845,7 +845,7 @@ get_params()
|
||||
}
|
||||
|
||||
static int
|
||||
read_s0()
|
||||
read_s0(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -874,7 +874,7 @@ read_s0()
|
||||
}
|
||||
|
||||
static int
|
||||
write_s0()
|
||||
write_s0(void)
|
||||
{
|
||||
int sector, i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user