diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2025-07-17 21:32:12 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2025-07-23 15:07:59 +0200 |
commit | 1856a585ae4290e666314ee7907dc8cbbb08fe2d (patch) | |
tree | b3062938a8b18ffd9eded99074de62b14e57b2f6 /src/ipcpd/local | |
parent | 4ed5f4527ba034b399386beea2949bccf69ce65a (diff) | |
download | ouroboros-1856a585ae4290e666314ee7907dc8cbbb08fe2d.tar.gz ouroboros-1856a585ae4290e666314ee7907dc8cbbb08fe2d.zip |
ipcpd: Refactor ipcp main struct
The ipcpi (IPCP instance) is now cleanly tucked away within its source
file instead of exposed all over the place.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/local')
-rw-r--r-- | src/ipcpd/local/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c index 160e07e0..054602e5 100644 --- a/src/ipcpd/local/main.c +++ b/src/ipcpd/local/main.c @@ -50,8 +50,6 @@ #define THIS_TYPE IPCP_LOCAL -struct ipcp ipcpi; - struct { struct shim_data * shim_data; @@ -141,11 +139,11 @@ static void * local_ipcp_packet_loop(void * o) static int local_ipcp_bootstrap(const struct ipcp_config * conf) { + assert(conf); assert(conf->type == THIS_TYPE); - ipcpi.dir_hash_algo = (enum hash_algo) conf->layer_info.dir_hash_algo; - strcpy(ipcpi.layer_name,conf->layer_info.name); + (void) conf; if (pthread_create(&local_data.packet_loop, NULL, local_ipcp_packet_loop, NULL)) { |