mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 19:39:31 +08:00
default-network-init.h: Fix warnings
This commit is contained in:
parent
e58b898d69
commit
27aedffc1b
@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
|
||||||
@ -52,7 +53,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
|
#ifndef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
|
||||||
#include <rtems/bsd/test/network-config.h>
|
#include "network-config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEFAULT_NETWORK_SHELL
|
#ifdef DEFAULT_NETWORK_SHELL
|
||||||
@ -164,6 +165,8 @@ default_network_dhcpcd_task(rtems_task_argument arg)
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
(void)arg;
|
||||||
|
|
||||||
#ifdef DEFAULT_NETWORK_DHCPCD_NO_DHCP_DISCOVERY
|
#ifdef DEFAULT_NETWORK_DHCPCD_NO_DHCP_DISCOVERY
|
||||||
static const char cfg[] = "nodhcp\nnodhcp6\n";
|
static const char cfg[] = "nodhcp\nnodhcp6\n";
|
||||||
int fd;
|
int fd;
|
||||||
@ -211,6 +214,7 @@ default_network_dhcpcd(void)
|
|||||||
static void
|
static void
|
||||||
default_network_on_exit(int exit_code, void *arg)
|
default_network_on_exit(int exit_code, void *arg)
|
||||||
{
|
{
|
||||||
|
(void)arg;
|
||||||
rtems_stack_checker_report_usage_with_plugin(NULL,
|
rtems_stack_checker_report_usage_with_plugin(NULL,
|
||||||
rtems_printf_plugin);
|
rtems_printf_plugin);
|
||||||
|
|
||||||
@ -230,6 +234,7 @@ Init(rtems_task_argument arg)
|
|||||||
char *ifname;
|
char *ifname;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(void)arg;
|
||||||
puts("*** " TEST_NAME " TEST ***");
|
puts("*** " TEST_NAME " TEST ***");
|
||||||
|
|
||||||
on_exit(default_network_on_exit, NULL);
|
on_exit(default_network_on_exit, NULL);
|
||||||
@ -239,7 +244,7 @@ Init(rtems_task_argument arg)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Let other tasks run to complete background work */
|
/* Let other tasks run to complete background work */
|
||||||
default_network_set_self_prio(RTEMS_MAXIMUM_PRIORITY - 1);
|
default_network_set_self_prio(RTEMS_MAXIMUM_PRIORITY - 1U);
|
||||||
|
|
||||||
#ifdef DEFAULT_NETWORK_SHELL
|
#ifdef DEFAULT_NETWORK_SHELL
|
||||||
sc = rtems_shell_init(
|
sc = rtems_shell_init(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user