summaryrefslogtreecommitdiff
path: root/src/lib/ipcp.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-30 13:32:27 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-30 13:32:27 +0200
commita3f002d6f2d102588f988c99eb16c64a68706dd2 (patch)
tree2ca4abbddec6866be75fa51c4ed7368fadf020a1 /src/lib/ipcp.c
parent1d4442e472d20f261986089ea468daa93631d1f4 (diff)
parent9aa7cd1d8d137bdb11f963af3e29ba4f421ab6b3 (diff)
downloadouroboros-a3f002d6f2d102588f988c99eb16c64a68706dd2.tar.gz
ouroboros-a3f002d6f2d102588f988c99eb16c64a68706dd2.zip
Merged in dstaesse/ouroboros/be-rina-name (pull request #46)
lib: renamed rina_name_t to 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};