Module Name: src Committed By: jruoho Date: Fri Aug 6 18:10:40 UTC 2010
Modified Files: src/sys/dev/acpi: acpi.c acpi_power.c Log Message: Fix prototypes; SYSCTLFN_ARGS -> SYSCTLFN_PROTO. (These things really only obscure the code.) To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/dev/acpi/acpi.c cvs rdiff -u -r1.21 -r1.22 src/sys/dev/acpi/acpi_power.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/dev/acpi/acpi.c diff -u src/sys/dev/acpi/acpi.c:1.208 src/sys/dev/acpi/acpi.c:1.209 --- src/sys/dev/acpi/acpi.c:1.208 Sun Jul 25 12:54:46 2010 +++ src/sys/dev/acpi/acpi.c Fri Aug 6 18:10:40 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi.c,v 1.208 2010/07/25 12:54:46 pgoyette Exp $ */ +/* $NetBSD: acpi.c,v 1.209 2010/08/06 18:10:40 jruoho Exp $ */ /*- * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.208 2010/07/25 12:54:46 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.209 2010/08/06 18:10:40 jruoho Exp $"); #include "opt_acpi.h" #include "opt_pcifixup.h" @@ -189,9 +189,9 @@ static void acpi_sleep_init(struct acpi_softc *); -static int sysctl_hw_acpi_fixedstats(SYSCTLFN_ARGS); -static int sysctl_hw_acpi_sleepstate(SYSCTLFN_ARGS); -static int sysctl_hw_acpi_sleepstates(SYSCTLFN_ARGS); +static int sysctl_hw_acpi_fixedstats(SYSCTLFN_PROTO); +static int sysctl_hw_acpi_sleepstate(SYSCTLFN_PROTO); +static int sysctl_hw_acpi_sleepstates(SYSCTLFN_PROTO); static bool acpi_is_scope(struct acpi_devnode *); static ACPI_TABLE_HEADER *acpi_map_rsdt(void); Index: src/sys/dev/acpi/acpi_power.c diff -u src/sys/dev/acpi/acpi_power.c:1.21 src/sys/dev/acpi/acpi_power.c:1.22 --- src/sys/dev/acpi/acpi_power.c:1.21 Thu Jul 1 09:28:37 2010 +++ src/sys/dev/acpi/acpi_power.c Fri Aug 6 18:10:40 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_power.c,v 1.21 2010/07/01 09:28:37 jruoho Exp $ */ +/* $NetBSD: acpi_power.c,v 1.22 2010/08/06 18:10:40 jruoho Exp $ */ /*- * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc. @@ -56,7 +56,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_power.c,v 1.21 2010/07/01 09:28:37 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_power.c,v 1.22 2010/08/06 18:10:40 jruoho Exp $"); #include <sys/param.h> #include <sys/kmem.h> @@ -115,7 +115,7 @@ static ACPI_STATUS acpi_power_res_sta(ACPI_OBJECT *, void *); static ACPI_OBJECT *acpi_power_pkg_get(ACPI_HANDLE, int); -static int acpi_power_sysctl(SYSCTLFN_ARGS); +static int acpi_power_sysctl(SYSCTLFN_PROTO); static const char *acpi_xname(ACPI_HANDLE); static struct acpi_power_res *