summaryrefslogtreecommitdiff
path: root/src/lib/ipcp.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-03-29 23:32:04 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-03-30 00:00:20 +0200
commit2ed8914deed73a558c6fbac7f107f47dc22f22d2 (patch)
tree7343797577910a35fc90f707e1618054ae90b839 /src/lib/ipcp.c
parent1d4442e472d20f261986089ea468daa93631d1f4 (diff)
downloadouroboros-2ed8914deed73a558c6fbac7f107f47dc22f22d2.tar.gz
ouroboros-2ed8914deed73a558c6fbac7f107f47dc22f22d2.zip
lib: renamed rina_name_t to instance_name_t
all functions taking a char * ap_name and uint id now take either a instance_name_t or instance_name_t *
Diffstat (limited to 'src/lib/ipcp.c')
-rw-r--r--src/lib/ipcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c
index 445160f0..60d5879e 100644
--- a/src/lib/ipcp.c
+++ b/src/lib/ipcp.c
@@ -85,8 +85,8 @@ static int send_ipcp_msg(pid_t pid,
return 0;
}
-pid_t ipcp_create(rina_name_t name,
- char * ipcp_type)
+pid_t ipcp_create(instance_name_t * api,
+ char * ipcp_type)
{
pid_t pid = 0;
char * api_id = NULL;
@@ -107,12 +107,12 @@ pid_t ipcp_create(rina_name_t name,
return pid;
}
- api_id = malloc(n_digits(name.api_id) + 1);
+ api_id = malloc(n_digits(api->id) + 1);
if (!api_id) {
LOG_ERR("Failed to malloc");
exit(EXIT_FAILURE);
}
- sprintf(api_id, "%d", name.api_id);
+ sprintf(api_id, "%d", api->id);
len += strlen(INSTALL_DIR);
len += strlen(ipcp_dir);
@@ -129,7 +129,7 @@ pid_t ipcp_create(rina_name_t name,
strcat(full_name, ipcp_dir);
char * argv[] = {full_name,
- name.ap_name, api_id,
+ api->name, api_id,
ipcp_type, 0};
char * envp[] = {0};