From aa67da0998fe9bc37dddc7d063b6b2aba0038d7d Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 26 Oct 2009 09:16:12 +0000 Subject: Add prototype for rtems_bsdnet_loopattach. Remove evil type-cast. --- testsuites/samples/loopback/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testsuites/samples') diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c index ed86adf498..bd62a43536 100644 --- a/testsuites/samples/loopback/init.c +++ b/testsuites/samples/loopback/init.c @@ -44,10 +44,11 @@ rtems_task Init(rtems_task_argument argument); /* * Network configuration */ -extern void rtems_bsdnet_loopattach(); +extern void rtems_bsdnet_loopattach(struct rtems_bsdnet_ifconfig *conf, int attaching); + static struct rtems_bsdnet_ifconfig loopback_config = { "lo0", /* name */ - (int (*)(struct rtems_bsdnet_ifconfig *, int))rtems_bsdnet_loopattach, /* attach function */ + rtems_bsdnet_loopattach, /* attach function */ NULL, /* link to next interface */ "127.0.0.1", /* IP address */ "255.0.0.0", /* IP net mask */ -- cgit v1.2.3