diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-04-27 15:40:50 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-04-27 15:40:50 +0200 |
commit | 34c40b7ba465382cfc3ef83af00793dfbb8fa943 (patch) | |
tree | 9f64215f326c3847699ae8856ae9cd0d609cbfac /src/lib/irm.c | |
parent | b6dc5ba9576d61d42db82c3da8cb0c039fac7179 (diff) | |
parent | 6809a2beea07a661a9c651cae1e100537c401bb7 (diff) | |
download | ouroboros-34c40b7ba465382cfc3ef83af00793dfbb8fa943.tar.gz ouroboros-34c40b7ba465382cfc3ef83af00793dfbb8fa943.zip |
Merge remote-tracking branch 'upstream/be' into be
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r-- | src/lib/irm.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c index b17cb04c..cc1c0d01 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -30,20 +30,18 @@ #include <stdlib.h> -int irm_create_ipcp(instance_name_t * api, - enum ipcp_type ipcp_type) +pid_t irm_create_ipcp(char * ipcp_name, + enum ipcp_type ipcp_type) { irm_msg_t msg = IRM_MSG__INIT; irm_msg_t * recv_msg = NULL; int ret = -1; - if (api == NULL || api->name == NULL) + if (ipcp_name == NULL) return -EINVAL; msg.code = IRM_MSG_CODE__IRM_CREATE_IPCP; - msg.ap_name = api->name; - msg.has_api_id = true; - msg.api_id = api->id; + msg.ap_name = ipcp_name; msg.has_ipcp_type = true; msg.ipcp_type = ipcp_type; |