aboutsummaryrefslogtreecommitdiff
path: root/stand/uboot
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-01-28 18:36:21 +0000
committerWarner Losh <imp@FreeBSD.org>2024-01-28 20:04:31 +0000
commitdcc20bced51583df83e49af269ff7be5fb48dbf8 (patch)
tree6a6d94bcb7612e7106b5f31b44bcbf66c48ca7ef /stand/uboot
parent551921a757758353af51cd0283e9e4bcee9a84d2 (diff)
downloadsrc-dcc20bced51583df83e49af269ff7be5fb48dbf8.tar.gz
src-dcc20bced51583df83e49af269ff7be5fb48dbf8.zip
stand: Use modern function definitions
Use modern function definitions for functions with no args. Sponsored by: Netflix
Diffstat (limited to 'stand/uboot')
-rw-r--r--stand/uboot/main.c2
-rw-r--r--stand/uboot/net.c2
-rw-r--r--stand/uboot/uboot_console.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/stand/uboot/main.c b/stand/uboot/main.c
index 6147757ced71..5a896959122e 100644
--- a/stand/uboot/main.c
+++ b/stand/uboot/main.c
@@ -339,7 +339,7 @@ get_load_device(int *type, int *unit, int *slice, int *partition)
}
static void
-print_disk_probe_info()
+print_disk_probe_info(void)
{
char slice[32];
char partition[32];
diff --git a/stand/uboot/net.c b/stand/uboot/net.c
index 969724ea02df..392dd1ca45c2 100644
--- a/stand/uboot/net.c
+++ b/stand/uboot/net.c
@@ -100,7 +100,7 @@ static struct uboot_softc uboot_softc;
* to obtain all this info again.
*/
static void
-get_env_net_params()
+get_env_net_params(void)
{
char *envstr;
in_addr_t rootaddr, serveraddr;
diff --git a/stand/uboot/uboot_console.c b/stand/uboot/uboot_console.c
index d8819b8193e2..f6656309be6c 100644
--- a/stand/uboot/uboot_console.c
+++ b/stand/uboot/uboot_console.c
@@ -73,14 +73,14 @@ uboot_cons_putchar(int c)
}
static int
-uboot_cons_getchar()
+uboot_cons_getchar(void)
{
return (ub_getc());
}
static int
-uboot_cons_poll()
+uboot_cons_poll(void)
{
return (ub_tstc());