From d21c4d5b0e7f42fe09784f11fa5776ff305e4fdf Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 28 Aug 2023 10:22:43 +0200 Subject: ipcpd: Set IPCP states in common sources The state of the IPCP was set and checked in the main files, but it's more convenient to do it in the common source. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/local/main.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ipcpd/local/main.c') diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c index e0ba04be..2a5199bb 100644 --- a/src/ipcpd/local/main.c +++ b/src/ipcpd/local/main.c @@ -148,8 +148,6 @@ static int local_ipcp_bootstrap(const struct ipcp_config * conf) ipcpi.dir_hash_algo = conf->layer_info.dir_hash_algo; strcpy(ipcpi.layer_name,conf->layer_info.layer_name); - ipcp_set_state(IPCP_OPERATIONAL); - if (pthread_create(&local_data.packet_loop, NULL, local_ipcp_packet_loop, NULL)) { ipcp_set_state(IPCP_INIT); -- cgit v1.2.3