stand: Use modern function definitions

Use modern function definitions for functions with no args.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-01-28 11:36:21 -07:00
parent 551921a757
commit dcc20bced5
10 changed files with 17 additions and 17 deletions

View File

@ -160,7 +160,7 @@ command_autoboot(int argc, char *argv[])
* we haven't tried already, try now.
*/
void
autoboot_maybe()
autoboot_maybe(void)
{
char *cp;

View File

@ -352,7 +352,7 @@ struct devsw efinet_dev = {
};
static int
efinet_dev_init()
efinet_dev_init(void)
{
struct netif_dif *dif;
struct netif_stats *stats;

View File

@ -111,7 +111,7 @@ static const struct cmdtab commands[] = {
static char cwd[FDT_CWD_LEN] = "/";
static vm_offset_t
fdt_find_static_dtb()
fdt_find_static_dtb(void)
{
Elf_Ehdr *ehdr;
Elf_Shdr *shdr;
@ -428,7 +428,7 @@ fdt_check_overlay_compatible(void *base_fdt, void *overlay_fdt)
* Returns the number of overlays successfully applied
*/
int
fdt_apply_overlays()
fdt_apply_overlays(void)
{
struct preloaded_file *fp;
size_t max_overlay_size, next_fdtp_size;
@ -551,7 +551,7 @@ fdt_is_setup(void)
}
int
fdt_setup_fdtp()
fdt_setup_fdtp(void)
{
struct preloaded_file *bfp;
vm_offset_t va;

View File

@ -83,7 +83,7 @@ ofw_cons_putchar(int c)
static int saved_char = -1;
int
ofw_cons_getchar()
ofw_cons_getchar(void)
{
unsigned char ch = '\0';
int l;
@ -105,7 +105,7 @@ ofw_cons_getchar()
}
int
ofw_cons_poll()
ofw_cons_poll(void)
{
unsigned char ch;

View File

@ -135,7 +135,7 @@ OF_test(char *name)
/* Return firmware millisecond count. */
int
OF_milliseconds()
OF_milliseconds(void)
{
static struct {
cell_t name;
@ -693,7 +693,7 @@ OF_boot(char *bootspec)
/* Suspend and drop back to the Open Firmware interface. */
void
OF_enter()
OF_enter(void)
{
static struct {
cell_t name;
@ -708,7 +708,7 @@ OF_enter()
/* Shut down and drop back to the Open Firmware interface. */
void
OF_exit()
OF_exit(void)
{
static struct {
cell_t name;
@ -723,7 +723,7 @@ OF_exit()
}
void
OF_quiesce()
OF_quiesce(void)
{
static struct {
cell_t name;

View File

@ -366,7 +366,7 @@ bz_internal_error(int errorcode)
#ifdef REGRESSION
/* Small test case, open and decompress test.bz2 */
int main()
int main(void)
{
struct open_file f;
char buf[1024];

View File

@ -54,7 +54,7 @@ int cacheline_size = 0;
static void getcachelinesize(void);
static void
getcachelinesize()
getcachelinesize(void)
{
static int cachemib[] = { CTL_MACHDEP, CPU_CACHELINE };
int clen;

View File

@ -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];

View File

@ -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;

View File

@ -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());