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. * we haven't tried already, try now.
*/ */
void void
autoboot_maybe() autoboot_maybe(void)
{ {
char *cp; char *cp;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -339,7 +339,7 @@ get_load_device(int *type, int *unit, int *slice, int *partition)
} }
static void static void
print_disk_probe_info() print_disk_probe_info(void)
{ {
char slice[32]; char slice[32];
char partition[32]; char partition[32];

View file

@ -100,7 +100,7 @@ static struct uboot_softc uboot_softc;
* to obtain all this info again. * to obtain all this info again.
*/ */
static void static void
get_env_net_params() get_env_net_params(void)
{ {
char *envstr; char *envstr;
in_addr_t rootaddr, serveraddr; in_addr_t rootaddr, serveraddr;

View file

@ -73,14 +73,14 @@ uboot_cons_putchar(int c)
} }
static int static int
uboot_cons_getchar() uboot_cons_getchar(void)
{ {
return (ub_getc()); return (ub_getc());
} }
static int static int
uboot_cons_poll() uboot_cons_poll(void)
{ {
return (ub_tstc()); return (ub_tstc());