diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-05-21 14:22:37 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-05-21 14:22:37 +0000 |
commit | aa81e0842e8d36a0c45977a53a08f6963818ccc6 (patch) | |
tree | e870ed43cd4502cd005b33d73ede9a138dc05605 /sys | |
parent | c684bb4d48dedd983d3c5e99045ee7186e0b10d7 (diff) |
Tweak style.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/loongson/loongson/pmon.c | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/sys/arch/loongson/loongson/pmon.c b/sys/arch/loongson/loongson/pmon.c index 44ca8e8a5cf..78a3f2c988e 100644 --- a/sys/arch/loongson/loongson/pmon.c +++ b/sys/arch/loongson/loongson/pmon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmon.c,v 1.7 2017/05/21 13:00:53 visa Exp $ */ +/* $OpenBSD: pmon.c,v 1.8 2017/05/21 14:22:36 visa Exp $ */ /* * Copyright (c) 2009, 2012 Miodrag Vallat. @@ -174,7 +174,8 @@ pmon_getenv(const char *var) return NULL; } -const struct pmon_env_reset *pmon_get_env_reset() +const struct pmon_env_reset * +pmon_get_env_reset(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; @@ -184,7 +185,8 @@ const struct pmon_env_reset *pmon_get_env_reset() return &env->reset; } -const struct pmon_env_smbios *pmon_get_env_smbios() +const struct pmon_env_smbios * +pmon_get_env_smbios(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; @@ -194,7 +196,8 @@ const struct pmon_env_smbios *pmon_get_env_smbios() return &env->efi.bios; } -const struct pmon_env_mem *pmon_get_env_mem() +const struct pmon_env_mem * +pmon_get_env_mem(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; uint64_t va = (uint64_t)&env->efi.bios.ptrs; @@ -206,7 +209,8 @@ const struct pmon_env_mem *pmon_get_env_mem() (va + env->efi.bios.ptrs.offs_mem); } -const struct pmon_env_cpu *pmon_get_env_cpu() +const struct pmon_env_cpu * +pmon_get_env_cpu(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; uint64_t va = (uint64_t)&env->efi.bios.ptrs; @@ -218,7 +222,8 @@ const struct pmon_env_cpu *pmon_get_env_cpu() (va + env->efi.bios.ptrs.offs_cpu); } -const struct pmon_env_sys *pmon_get_env_sys() +const struct pmon_env_sys * +pmon_get_env_sys(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; uint64_t va = (uint64_t)&env->efi.bios.ptrs; @@ -230,7 +235,8 @@ const struct pmon_env_sys *pmon_get_env_sys() (va + env->efi.bios.ptrs.offs_sys); } -const struct pmon_env_irq *pmon_get_env_irq() +const struct pmon_env_irq * +pmon_get_env_irq(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; uint64_t va = (uint64_t)&env->efi.bios.ptrs; @@ -242,7 +248,8 @@ const struct pmon_env_irq *pmon_get_env_irq() (va + env->efi.bios.ptrs.offs_irq); } -const struct pmon_env_iface *pmon_get_env_iface() +const struct pmon_env_iface * +pmon_get_env_iface(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; uint64_t va = (uint64_t)&env->efi.bios.ptrs; @@ -254,7 +261,8 @@ const struct pmon_env_iface *pmon_get_env_iface() (va + env->efi.bios.ptrs.offs_iface); } -const struct pmon_env_special *pmon_get_env_special() +const struct pmon_env_special * +pmon_get_env_special(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; uint64_t va = (uint64_t)&env->efi.bios.ptrs; @@ -266,7 +274,8 @@ const struct pmon_env_special *pmon_get_env_special() (va + env->efi.bios.ptrs.offs_special); } -const struct pmon_env_device *pmon_get_env_device() +const struct pmon_env_device * +pmon_get_env_device(void) { struct pmon_env *env = (struct pmon_env *)pmon_envp; uint64_t va = (uint64_t)&env->efi.bios.ptrs; |