From e0f966de1096d18ac928363d9451e53e2b628acd Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Tue, 16 Feb 2016 16:41:30 +0200 Subject: net: apps: Rename application init function Rename application init function to init_app() so that it is more descriptive. Change-Id: Id470756345c0bd10b103270115b26f3e8a281d17 Signed-off-by: Jukka Rissanen --- samples/net/coap_observe_client/src/coap-observe-client.c | 4 ++-- samples/net/coap_server/src/coap-server.c | 4 ++-- samples/net/dtls_client/src/dtls-client.c | 4 ++-- samples/net/dtls_server/src/dtls-server.c | 4 ++-- samples/net/echo_client/src/echo-client.c | 4 ++-- samples/net/echo_server/src/echo-server.c | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) (limited to 'samples') diff --git a/samples/net/coap_observe_client/src/coap-observe-client.c b/samples/net/coap_observe_client/src/coap-observe-client.c index 165467b18..228ab2d72 100644 --- a/samples/net/coap_observe_client/src/coap-observe-client.c +++ b/samples/net/coap_observe_client/src/coap-observe-client.c @@ -93,7 +93,7 @@ static struct in_addr in4addr_peer = PEER_IPADDR; static struct in_addr in4addr_my = MY_IPADDR; #endif -static inline void init_server() +static inline void init_app(void) { PRINT("%s: run coap observe client\n", __func__); @@ -312,7 +312,7 @@ void startup(void) coap_init_engine(); coap_init_mid(); - init_server(); + init_app(); coap_ctx = coap_context_new((uip_ipaddr_t *)&in6addr_my, MY_PORT); if (!coap_ctx) { diff --git a/samples/net/coap_server/src/coap-server.c b/samples/net/coap_server/src/coap-server.c index bff615bf2..db6a611cd 100644 --- a/samples/net/coap_server/src/coap-server.c +++ b/samples/net/coap_server/src/coap-server.c @@ -103,7 +103,7 @@ static struct in_addr in4addr_peer = PEER_IPADDR; static struct in_addr in4addr_my = MY_IPADDR; #endif -static inline void init_server() +static inline void init_app(void) { PRINT("%s: run coap server\n", __func__); @@ -308,7 +308,7 @@ void startup(void) dtls_set_log_level(DTLS_LOG_DEBUG); #endif - init_server(); + init_app(); /* Activate the application-specific resources. */ rest_activate_resource(&res_plugtest_test, "test"); diff --git a/samples/net/dtls_client/src/dtls-client.c b/samples/net/dtls_client/src/dtls-client.c index 837a77369..21f59442d 100644 --- a/samples/net/dtls_client/src/dtls-client.c +++ b/samples/net/dtls_client/src/dtls-client.c @@ -115,7 +115,7 @@ static struct in_addr in4addr_peer = PEER_IPADDR; static struct in_addr in4addr_my = MY_IPADDR; #endif -static inline void init_client(void) +static inline void init_app(void) { PRINT("%s: run dtls client\n", __func__); @@ -454,7 +454,7 @@ void startup(void) dtls_init(); - init_client(); + init_app(); user_data.ctx = get_context(); if (!user_data.ctx) { diff --git a/samples/net/dtls_server/src/dtls-server.c b/samples/net/dtls_server/src/dtls-server.c index a4ad703d5..f4412bc10 100644 --- a/samples/net/dtls_server/src/dtls-server.c +++ b/samples/net/dtls_server/src/dtls-server.c @@ -84,7 +84,7 @@ static const struct in_addr in4addr_any = { { { 0 } } }; static struct in_addr in4addr_my = MY_IPADDR; #endif -static inline void init_server() +static inline void init_app(void) { PRINT("%s: run dtls server\n", __func__); @@ -390,7 +390,7 @@ void startup(void) dtls_init(); - init_server(); + init_app(); recv = get_context(); if (!recv) { diff --git a/samples/net/echo_client/src/echo-client.c b/samples/net/echo_client/src/echo-client.c index 3c8496b8b..ab059805e 100644 --- a/samples/net/echo_client/src/echo-client.c +++ b/samples/net/echo_client/src/echo-client.c @@ -101,7 +101,7 @@ static struct in6_addr in6addr_my = MY_IPADDR; static struct net_context *unicast, *multicast; -static inline void init_server() +static inline void init_app(void) { PRINT("%s: run mcast tester\n", __func__); @@ -373,7 +373,7 @@ void main(void) { net_init(); - init_server(); + init_app(); ipsum_len = strlen(lorem_ipsum); diff --git a/samples/net/echo_server/src/echo-server.c b/samples/net/echo_server/src/echo-server.c index fa5a50163..6b15e1c21 100644 --- a/samples/net/echo_server/src/echo-server.c +++ b/samples/net/echo_server/src/echo-server.c @@ -74,7 +74,7 @@ static struct in6_addr in6addr_my = MY_IPADDR; #endif #define MY_PORT 4242 -static inline void init_server() +static inline void init_app(void) { PRINT("%s: run echo server\n", __func__); @@ -271,7 +271,7 @@ void main(void) { net_init(); - init_server(); + init_app(); #if defined(CONFIG_NETWORKING_WITH_BT) if (bt_enable(NULL)) { -- cgit v1.2.3