git: e5b68a6a00e6 - main - sdiotool: Use (void) for functions taking no arguments

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Thu, 05 Nov 2026 14:52:30 UTC
The branch main has been updated by manu:

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

commit e5b68a6a00e609a5a39777aa7060c4cd1288c45f
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2026-10-22 16:39:11 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2026-11-05 14:52:17 +0000

    sdiotool: Use (void) for functions taking no arguments
    
    Use (void) instead of an empty parameter list, as required by style(9), and let the compiler diagnose calls with unexpected arguments.
    
    Reviewed by:    oh
    Differential Revision:  https://reviews.freebsd.org/D61029
---
 usr.bin/sdiotool/sdiotool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.bin/sdiotool/sdiotool.c b/usr.bin/sdiotool/sdiotool.c
index 2682891fd4b1..4b3552d5f256 100644
--- a/usr.bin/sdiotool/sdiotool.c
+++ b/usr.bin/sdiotool/sdiotool.c
@@ -421,7 +421,7 @@ probe_bcrm(struct cam_device *dev) {
 }
 
 __unused static uint8_t*
-mmap_fw() {
+mmap_fw(void) {
 	const char fw_path[] = "/home/kibab/repos/fbsd-bbb/brcm-firmware/brcmfmac4330-sdio.bin";
 	struct stat sb;
 	uint8_t *fw_ptr;
@@ -439,7 +439,7 @@ mmap_fw() {
 }
 
 static void
-usage() {
+usage(void) {
 	printf("sdiotool -u <pass_dev_unit>\n");
 	exit(0);
 }