Module Name: src
Committed By: mrg
Date: Mon Aug 7 23:29:23 UTC 2023
Modified Files:
src/sys/arch/hpcmips/vr: vrc4172gpio.c
Log Message:
fix mis-matched function prototype and definitions.
found by GCC 12.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/hpcmips/vr/vrc4172gpio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hpcmips/vr/vrc4172gpio.c
diff -u src/sys/arch/hpcmips/vr/vrc4172gpio.c:1.18 src/sys/arch/hpcmips/vr/vrc4172gpio.c:1.19
--- src/sys/arch/hpcmips/vr/vrc4172gpio.c:1.18 Sat May 6 21:34:40 2023
+++ src/sys/arch/hpcmips/vr/vrc4172gpio.c Mon Aug 7 23:29:22 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: vrc4172gpio.c,v 1.18 2023/05/06 21:34:40 andvar Exp $ */
+/* $NetBSD: vrc4172gpio.c,v 1.19 2023/08/07 23:29:22 mrg Exp $ */
/*-
* Copyright (c) 2001 TAKEMRUA Shin. All rights reserved.
*
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vrc4172gpio.c,v 1.18 2023/05/06 21:34:40 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vrc4172gpio.c,v 1.19 2023/08/07 23:29:22 mrg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -118,7 +118,7 @@ static u_int16_t read_2(struct vrc4172gp
static void write_2(struct vrc4172gpio_softc *, bus_addr_t, u_int16_t);
static u_int32_t read_4(struct vrc4172gpio_softc *, bus_addr_t);
static void write_4(struct vrc4172gpio_softc *, bus_addr_t, u_int32_t);
-static void dumpbits(u_int32_t*, int, int, int, const char[2]);
+static void dumpbits(u_int32_t*, int, int, int, const char *);
static struct hpcio_chip vrc4172gpio_iochip = {
.hc_portread = vrc4172gpio_port_read,