Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2023 15:54:07 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0a04bb7a4fef - main - fdisk: Use valid prototypes for function declarations with no arguments.
Message-ID:  <202304241554.33OFs76T099885@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=0a04bb7a4fef8cd7277acc1490803b9939a9b1e1

commit 0a04bb7a4fef8cd7277acc1490803b9939a9b1e1
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-24 15:53:49 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-24 15:53:49 +0000

    fdisk: Use valid prototypes for function declarations with no arguments.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D39726
---
 sbin/fdisk/fdisk.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index a9afd50ed441..451ee21830d2 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -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 @@ setactive:
 }
 
 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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304241554.33OFs76T099885>