Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ofw Use a typedef to cleanup OF_set_callback.
details: https://anonhg.NetBSD.org/src/rev/f42b515c963a
branches: trunk
changeset: 773331:f42b515c963a
user: matt <matt%NetBSD.org@localhost>
date: Tue Jan 31 04:32:07 2012 +0000
description:
Use a typedef to cleanup OF_set_callback.
diffstat:
sys/arch/arm/ofw/openfirm.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (41 lines):
diff -r f8f3daf494f6 -r f42b515c963a sys/arch/arm/ofw/openfirm.c
--- a/sys/arch/arm/ofw/openfirm.c Tue Jan 31 04:28:50 2012 +0000
+++ b/sys/arch/arm/ofw/openfirm.c Tue Jan 31 04:32:07 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: openfirm.c,v 1.9 2011/07/17 20:54:37 joerg Exp $ */
+/* $NetBSD: openfirm.c,v 1.10 2012/01/31 04:32:07 matt Exp $ */
/*
* Copyright 1997
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.9 2011/07/17 20:54:37 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.10 2012/01/31 04:32:07 matt Exp $");
#include <sys/param.h>
@@ -698,16 +698,17 @@
while (1); /* just in case */
}
-void
-(*OF_set_callback(newfunc))(void *)
- void (*newfunc)(void *);
+typedef void (*of_callback_t)(void *);
+
+of_callback_t
+OF_set_callback(of_callback_t newfunc)
{
static struct {
const char *name;
int nargs;
int nreturns;
- void (*newfunc)(void *);
- void (*oldfunc)(void *);
+ of_callback_t newfunc;
+ of_callback_t oldfunc;
} args = {
"set-callback",
1,
Home |
Main Index |
Thread Index |
Old Index