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:
John Baldwin 2023-04-24 08:53:49 -07:00
parent 76318a013d
commit 0a04bb7a4f

View File

@ -449,7 +449,7 @@ main(int argc, char *argv[])
} }
static void static void
usage() usage(void)
{ {
fprintf(stderr, "%s%s", fprintf(stderr, "%s%s",
"usage: fdisk [-BIaipqstu] [-b bootcode] [-1234] [disk]\n", "usage: fdisk [-BIaipqstu] [-b bootcode] [-1234] [disk]\n",
@ -610,7 +610,7 @@ change_part(int i)
} }
static void static void
print_params() print_params(void)
{ {
printf("parameters extracted from in-core disklabel are:\n"); printf("parameters extracted from in-core disklabel are:\n");
printf("cylinders=%d heads=%d sectors/track=%d (%d blks/cyl)\n\n" printf("cylinders=%d heads=%d sectors/track=%d (%d blks/cyl)\n\n"
@ -661,14 +661,14 @@ change_active(int which)
} }
static void static void
change_code() change_code(void)
{ {
if (ok("Do you want to change the boot code?")) if (ok("Do you want to change the boot code?"))
init_boot(); init_boot();
} }
void void
get_params_to_use() get_params_to_use(void)
{ {
int tmp; int tmp;
print_params(); print_params();
@ -807,7 +807,7 @@ write_disk(off_t sector, void *buf)
} }
static int static int
get_params() get_params(void)
{ {
int error; int error;
u_int u; u_int u;
@ -845,7 +845,7 @@ get_params()
} }
static int static int
read_s0() read_s0(void)
{ {
int i; int i;
@ -874,7 +874,7 @@ read_s0()
} }
static int static int
write_s0() write_s0(void)
{ {
int sector, i; int sector, i;