diff options
author | Sander Vrijders <[email protected]> | 2016-06-22 16:53:52 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-06-22 16:53:52 +0200 |
commit | cf5d13dfd66afd68dd7fe93d009a4539c236b095 (patch) | |
tree | fbb6c556e833e5af3cead917c8ac547853f0382f /src/lib/ipcp.c | |
parent | 34bcd67e4811be85e11253e4176ec9fec5c3bbef (diff) | |
download | ouroboros-cf5d13dfd66afd68dd7fe93d009a4539c236b095.tar.gz ouroboros-cf5d13dfd66afd68dd7fe93d009a4539c236b095.zip |
lib: Change DA header to NSM
Functionality that was previously thought to be part of the DIF
Allocator is actually namespace management. Hence the file has been
renamed and the API updated.
Diffstat (limited to 'src/lib/ipcp.c')
-rw-r--r-- | src/lib/ipcp.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c index a43afd21..730880f9 100644 --- a/src/lib/ipcp.c +++ b/src/lib/ipcp.c @@ -275,35 +275,32 @@ int ipcp_bootstrap(pid_t pid, } int ipcp_enroll(pid_t pid, - char * member_name, + char * dif_name, char * n_1_dif) { ipcp_msg_t msg = IPCP_MSG__INIT; ipcp_msg_t * recv_msg = NULL; int ret = -1; - if (n_1_dif == NULL || member_name == NULL) + if (n_1_dif == NULL || dif_name == NULL) return -EINVAL; - msg.code = IPCP_MSG_CODE__IPCP_ENROLL; - msg.member_name = member_name; - msg.n_1_dif = n_1_dif; + msg.code = IPCP_MSG_CODE__IPCP_ENROLL; + msg.dif_name = dif_name; + msg.n_1_dif = n_1_dif; recv_msg = send_recv_ipcp_msg(pid, &msg); if (recv_msg == NULL) { - free(msg.member_name); return -1; } if (recv_msg->has_result == false) { ipcp_msg__free_unpacked(recv_msg, NULL); - free(msg.member_name); return -1; } ret = recv_msg->result; ipcp_msg__free_unpacked(recv_msg, NULL); - free(msg.member_name); return ret; } |