diff --git a/samples/net/socket_echo/sample.yaml b/samples/net/socket_echo/sample.yaml new file mode 100644 index 00000000000..7b308125e43 --- /dev/null +++ b/samples/net/socket_echo/sample.yaml @@ -0,0 +1,8 @@ +sample: + description: BSD Sockets API TCP echo server sample + name: socket_echo +tests: +- test: + build_only: true + platform_whitelist: qemu_x86 + tags: net diff --git a/samples/net/socket_echo/src/socket_echo.c b/samples/net/socket_echo/src/socket_echo.c index c9fa4c8b572..c6c83904094 100644 --- a/samples/net/socket_echo/src/socket_echo.c +++ b/samples/net/socket_echo/src/socket_echo.c @@ -19,12 +19,11 @@ #include #include -#include +#include void init_net(void) { - int ret = net_sample_app_init("socket_echo", NET_SAMPLE_NEED_IPV4, - K_SECONDS(3)); + int ret = net_app_init("socket_echo", NET_APP_NEED_IPV4, K_SECONDS(3)); if (ret < 0) { printf("Application init failed\n");