summaryrefslogtreecommitdiff
path: root/src/ipcpd/broadcast/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2023-11-27 14:43:10 +0100
committerSander Vrijders <sander@ouroboros.rocks>2023-11-29 09:57:29 +0100
commit3f24301fff9c544dfe2b89c5737bc3cdf94ef9a9 (patch)
tree35e04e27e4a0e11c91fe3aa201004ac1d83a72e0 /src/ipcpd/broadcast/main.c
parentc1d679506180bc23241fe14818c0a2dbbcbe3cef (diff)
downloadouroboros-3f24301fff9c544dfe2b89c5737bc3cdf94ef9a9.tar.gz
ouroboros-3f24301fff9c544dfe2b89c5737bc3cdf94ef9a9.zip
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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/broadcast/main.c')
-rw-r--r--src/ipcpd/broadcast/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/broadcast/main.c b/src/ipcpd/broadcast/main.c
index de1feeb2..e3e323a8 100644
--- a/src/ipcpd/broadcast/main.c
+++ b/src/ipcpd/broadcast/main.c
@@ -56,7 +56,7 @@ struct ipcp ipcpi;
static int initialize_components(const struct ipcp_config * conf)
{
- strcpy(ipcpi.layer_name, conf->layer_info.layer_name);
+ strcpy(ipcpi.layer_name, conf->layer_info.name);
ipcpi.dir_hash_algo = conf->layer_info.dir_hash_algo;
assert(ipcp_dir_hash_len() != 0);
@@ -147,7 +147,7 @@ static int broadcast_ipcp_enroll(const char * dst,
log_info_id(id, "Enrolled with %s.", dst);
info->dir_hash_algo = ipcpi.dir_hash_algo;
- strcpy(info->layer_name, ipcpi.layer_name);
+ strcpy(info->name, ipcpi.layer_name);
return 0;