From 3f24301fff9c544dfe2b89c5737bc3cdf94ef9a9 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 27 Nov 2023 14:43:10 +0100 Subject: include: Rename layer.layer_name to layer.name The layer_info had a member layer_name which is a bit redundant. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index b97791a4..131bd468 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -640,7 +640,7 @@ int bootstrap_ipcp(pid_t pid, return -1; } - entry->layer = strdup(info.layer_name); + entry->layer = strdup(info.name); if (entry->layer == NULL) { pthread_rwlock_unlock(&irmd.reg_lock); log_warn("Failed to set name of layer."); @@ -652,7 +652,7 @@ int bootstrap_ipcp(pid_t pid, pthread_rwlock_unlock(&irmd.reg_lock); log_info("Bootstrapped IPCP %d in layer %s.", - pid, conf->layer_info.layer_name); + pid, conf->layer_info.name); return 0; } @@ -694,7 +694,7 @@ int enroll_ipcp(pid_t pid, return -1; } - ipcp->layer = strdup(info.layer_name); + ipcp->layer = strdup(info.name); if (ipcp->layer == NULL) { pthread_rwlock_unlock(&irmd.reg_lock); log_err("Failed to strdup layer_name."); @@ -706,7 +706,7 @@ int enroll_ipcp(pid_t pid, pthread_rwlock_unlock(&irmd.reg_lock); log_info("Enrolled IPCP %d in layer %s.", - pid, info.layer_name); + pid, info.name); return 0; } -- cgit v1.2.3