summaryrefslogtreecommitdiff
path: root/src/lib/ipcp.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-03-30 15:36:19 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-03-30 15:36:19 +0200
commit231f60c51c1346069ab82ab17eb392e039620270 (patch)
treeb4dea779cd0b2de5b6ffd760704700dbb665cdf6 /src/lib/ipcp.c
parentdd20c175f10c04bf5abd0ca764ededaa7a4ac621 (diff)
parenta3f002d6f2d102588f988c99eb16c64a68706dd2 (diff)
downloadouroboros-231f60c51c1346069ab82ab17eb392e039620270.tar.gz
ouroboros-231f60c51c1346069ab82ab17eb392e039620270.zip
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into be-flow
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};