summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/isa/isa_machdep.c5
-rw-r--r--sys/arch/i386/pci/pci_intr_fixup.c5
-rw-r--r--sys/dev/microcode/adw/adwmcode.c6
-rw-r--r--sys/dev/rnd.c4
-rw-r--r--sys/kern/genassym.sh4
-rw-r--r--sys/kern/uipc_mbuf.c4
-rw-r--r--sys/lib/libkern/muldi3.c3
7 files changed, 13 insertions, 18 deletions
diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c
index abf5f024045..d145455cfe8 100644
--- a/sys/arch/i386/isa/isa_machdep.c
+++ b/sys/arch/i386/isa/isa_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.c,v 1.83 2016/09/22 10:25:34 jsg Exp $ */
+/* $OpenBSD: isa_machdep.c,v 1.84 2021/03/06 09:20:50 jsg Exp $ */
/* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */
/*-
@@ -334,8 +334,7 @@ intr_calculatemasks(void)
}
int
-fakeintr(arg)
- void *arg;
+fakeintr(void *arg)
{
return 0;
}
diff --git a/sys/arch/i386/pci/pci_intr_fixup.c b/sys/arch/i386/pci/pci_intr_fixup.c
index a8aa0c7a5da..b14b9b1ea0d 100644
--- a/sys/arch/i386/pci/pci_intr_fixup.c
+++ b/sys/arch/i386/pci/pci_intr_fixup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_intr_fixup.c,v 1.62 2008/12/07 14:33:26 kettenis Exp $ */
+/* $OpenBSD: pci_intr_fixup.c,v 1.63 2021/03/06 09:20:50 jsg Exp $ */
/* $NetBSD: pci_intr_fixup.c,v 1.10 2000/08/10 21:18:27 soda Exp $ */
/*
@@ -242,8 +242,7 @@ const struct pciintr_icu_table {
const struct pciintr_icu_table *pciintr_icu_lookup(pcireg_t);
const struct pciintr_icu_table *
-pciintr_icu_lookup(id)
- pcireg_t id;
+pciintr_icu_lookup(pcireg_t id)
{
const struct pciintr_icu_table *piit;
diff --git a/sys/dev/microcode/adw/adwmcode.c b/sys/dev/microcode/adw/adwmcode.c
index cc564f1da64..b9da7eb2074 100644
--- a/sys/dev/microcode/adw/adwmcode.c
+++ b/sys/dev/microcode/adw/adwmcode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adwmcode.c,v 1.8 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: adwmcode.c,v 1.9 2021/03/06 09:20:50 jsg Exp $ */
/* $NetBSD: adwmcode.c,v 1.5 2000/05/27 18:24:50 dante Exp $ */
/*
@@ -69,9 +69,7 @@
* Initialize a set of Carriers and add them to the free list.
*/
ADW_CARRIER *
-AdwInitCarriers(carr_dmap, carriers)
- bus_dmamap_t carr_dmap;
- ADW_CARRIER *carriers;
+AdwInitCarriers(bus_dmamap_t carr_dmap, ADW_CARRIER *carriers)
{
ADW_CARRIER *carr;
u_int32_t carr_next = 0;
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c
index df566d418a8..0f804e87822 100644
--- a/sys/dev/rnd.c
+++ b/sys/dev/rnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rnd.c,v 1.221 2020/06/15 14:52:19 deraadt Exp $ */
+/* $OpenBSD: rnd.c,v 1.222 2021/03/06 09:20:49 jsg Exp $ */
/*
* Copyright (c) 2011,2020 Theo de Raadt.
@@ -547,7 +547,7 @@ arc4random_buf(void *buf, size_t n)
* Allocate a new ChaCha20 context for the caller to use.
*/
struct arc4random_ctx *
-arc4random_ctx_new()
+arc4random_ctx_new(void)
{
char keybuf[KEYSZ + IVSZ];
diff --git a/sys/kern/genassym.sh b/sys/kern/genassym.sh
index 02f05509b96..a28dd70e9d4 100644
--- a/sys/kern/genassym.sh
+++ b/sys/kern/genassym.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: genassym.sh,v 1.13 2017/08/15 01:53:06 tedu Exp $
+# $OpenBSD: genassym.sh,v 1.14 2021/03/06 09:20:49 jsg Exp $
# $NetBSD: genassym.sh,v 1.9 1998/04/25 19:48:27 matthias Exp $
#
@@ -132,7 +132,7 @@ $0 ~ /^endif/ {
if (defining == 0) {
defining = 1;
printf("void f" FNR "(void);\n");
- printf("void f" FNR "() {\n");
+ printf("void f" FNR "(void) {\n");
if (ccode)
call[FNR] = "f" FNR;
defining = 1;
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 5bf8c99f68f..648282d42f8 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.278 2021/02/25 02:43:32 dlg Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.279 2021/03/06 09:20:49 jsg Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -202,7 +202,7 @@ mbinit(void)
}
void
-mbcpuinit()
+mbcpuinit(void)
{
int i;
diff --git a/sys/lib/libkern/muldi3.c b/sys/lib/libkern/muldi3.c
index f854a5c0dd6..d9d64e3a4b8 100644
--- a/sys/lib/libkern/muldi3.c
+++ b/sys/lib/libkern/muldi3.c
@@ -93,8 +93,7 @@
static quad_t __lmulq(u_int, u_int);
quad_t
-__muldi3(a, b)
- quad_t a, b;
+__muldi3(quad_t a, quad_t b)
{
union uu u, v, low, prod;
u_int high, mid, udiff, vdiff;