diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 09:16:12 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 09:16:12 +0000 |
commit | aa67da0998fe9bc37dddc7d063b6b2aba0038d7d (patch) | |
tree | fe5ff09f214e2226f7148bd8f6414efa370196a1 | |
parent | 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-aa67da0998fe9bc37dddc7d063b6b2aba0038d7d.tar.bz2 |
Add prototype for rtems_bsdnet_loopattach.
Remove evil type-cast.
-rw-r--r-- | testsuites/samples/loopback/init.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |