summaryrefslogtreecommitdiffstats
path: root/sys/dev/snc/if_snc.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2012-11-10 14:58:06 +0000
committernyan <nyan@FreeBSD.org>2012-11-10 14:58:06 +0000
commitb9fc6a077df7a6a8cec47e6be71b7c4fdcf4e98a (patch)
tree7fe0a3d57f503d604b175ef8b6e3d7bec4e5c305 /sys/dev/snc/if_snc.c
parentf210fef635c9ecc2c50ec6aefd807b816f91eca6 (diff)
downloadFreeBSD-src-b9fc6a077df7a6a8cec47e6be71b7c4fdcf4e98a.zip
FreeBSD-src-b9fc6a077df7a6a8cec47e6be71b7c4fdcf4e98a.tar.gz
Use ANSI prototype to fix build with clang.
MFC after: 1 week
Diffstat (limited to 'sys/dev/snc/if_snc.c')
-rw-r--r--sys/dev/snc/if_snc.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/sys/dev/snc/if_snc.c b/sys/dev/snc/if_snc.c
index 02ac7eb..914a406 100644
--- a/sys/dev/snc/if_snc.c
+++ b/sys/dev/snc/if_snc.c
@@ -66,9 +66,7 @@ devclass_t snc_devclass;
* Allocate a port resource with the given resource id.
*/
int
-snc_alloc_port(dev, rid)
- device_t dev;
- int rid;
+snc_alloc_port(device_t dev, int rid)
{
struct snc_softc *sc = device_get_softc(dev);
struct resource *res;
@@ -91,9 +89,7 @@ snc_alloc_port(dev, rid)
* Allocate a memory resource with the given resource id.
*/
int
-snc_alloc_memory(dev, rid)
- device_t dev;
- int rid;
+snc_alloc_memory(device_t dev, int rid)
{
struct snc_softc *sc = device_get_softc(dev);
struct resource *res;
@@ -116,10 +112,7 @@ snc_alloc_memory(dev, rid)
* Allocate an irq resource with the given resource id.
*/
int
-snc_alloc_irq(dev, rid, flags)
- device_t dev;
- int rid;
- int flags;
+snc_alloc_irq(device_t dev, int rid, int flags)
{
struct snc_softc *sc = device_get_softc(dev);
struct resource *res;
@@ -139,8 +132,7 @@ snc_alloc_irq(dev, rid, flags)
* Release all resources
*/
void
-snc_release_resources(dev)
- device_t dev;
+snc_release_resources(device_t dev)
{
struct snc_softc *sc = device_get_softc(dev);
@@ -170,9 +162,7 @@ snc_release_resources(dev)
****************************************************************/
int
-snc_probe(dev, type)
- device_t dev;
- int type;
+snc_probe(device_t dev, int type)
{
struct snc_softc *sc = device_get_softc(dev);
@@ -188,8 +178,7 @@ snc_probe(dev, type)
****************************************************************/
int
-snc_attach(dev)
- device_t dev;
+snc_attach(device_t dev)
{
struct snc_softc *sc = device_get_softc(dev);
u_int8_t myea[ETHER_ADDR_LEN];
@@ -253,8 +242,7 @@ snc_attach(dev)
****************************************************************/
int
-snc_shutdown(dev)
- device_t dev;
+snc_shutdown(device_t dev)
{
struct snc_softc *sc = device_get_softc(dev);
OpenPOWER on IntegriCloud