mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-27 22:11:20 +08:00
Add prototype for rtems_bsdnet_loopattach.
Remove evil type-cast.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user