Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/gsc - make local functions static
details: https://anonhg.NetBSD.org/src/rev/30dcd5e9fa72
branches: trunk
changeset: 762082:30dcd5e9fa72
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Feb 15 10:35:39 2011 +0000
description:
- make local functions static
- remove parentheses from return
- use aprint_error(9)
diffstat:
sys/arch/hp700/gsc/hil_gsc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 2c70781db8b6 -r 30dcd5e9fa72 sys/arch/hp700/gsc/hil_gsc.c
--- a/sys/arch/hp700/gsc/hil_gsc.c Tue Feb 15 10:35:05 2011 +0000
+++ b/sys/arch/hp700/gsc/hil_gsc.c Tue Feb 15 10:35:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hil_gsc.c,v 1.1 2011/02/15 10:32:56 tsutsui Exp $ */
+/* $NetBSD: hil_gsc.c,v 1.2 2011/02/15 10:35:39 tsutsui Exp $ */
/* $OpenBSD: hil_gsc.c,v 1.5 2005/12/22 07:09:52 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
@@ -45,8 +45,8 @@
#include <dev/hil/hilvar.h>
-int hil_gsc_match(device_t, cfdata_t, void *);
-void hil_gsc_attach(device_t, device_t, void *);
+static int hil_gsc_match(device_t, cfdata_t, void *);
+static void hil_gsc_attach(device_t, device_t, void *);
struct hil_gsc_softc {
struct hil_softc sc_hs;
@@ -64,9 +64,9 @@
if (ga->ga_type.iodc_type != HPPA_TYPE_FIO ||
ga->ga_type.iodc_sv_model != HPPA_FIO_HIL)
- return (0);
+ return 0;
- return (1);
+ return 1;
}
void
@@ -81,7 +81,7 @@
sc->sc_bst = ga->ga_iot;
if (bus_space_map(ga->ga_iot, ga->ga_hpa,
HILMAPSIZE, 0, &sc->sc_bsh)) {
- printf(": couldn't map hil controller\n");
+ aprint_error(": couldn't map hil controller\n");
return;
}
Home |
Main Index |
Thread Index |
Old Index