diff options
author | dimitri staessens <[email protected]> | 2016-06-24 18:57:34 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-06-24 18:57:34 +0200 |
commit | 76eff8e31eb1e6a6b65284ec4d33cfa088008c3d (patch) | |
tree | bbb7186d986f9555e457768504f9ad0ad7cbbaad /src/lib/irm.c | |
parent | 0abbbd9fb6499d02d04a5007e803eb79306c341b (diff) | |
parent | 4b5eaafdc9b61307a6a4074366372df3c170372e (diff) | |
download | ouroboros-76eff8e31eb1e6a6b65284ec4d33cfa088008c3d.tar.gz ouroboros-76eff8e31eb1e6a6b65284ec4d33cfa088008c3d.zip |
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into be-irmd-registry
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r-- | src/lib/irm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c index ff5c3237..8fd0a7e7 100644 --- a/src/lib/irm.c +++ b/src/lib/irm.c @@ -22,6 +22,7 @@ #define OUROBOROS_PREFIX "libouroboros-irm" +#include <ouroboros/errno.h> #include <ouroboros/irm.h> #include <ouroboros/common.h> #include <ouroboros/logs.h> @@ -143,7 +144,7 @@ int irm_bootstrap_ipcp(instance_name_t * api, config.if_name = conf->if_name; break; default: - return -1; + return -EIPCPTYPE; } recv_msg = send_recv_irm_msg(&msg); @@ -180,7 +181,7 @@ int irm_enroll_ipcp(instance_name_t * api, msg.dif_name = malloc(sizeof(*(msg.dif_name))); if (msg.dif_name == NULL) { LOG_ERR("Failed to malloc"); - return -1; + return -ENOMEM; } msg.dif_name[0] = dif_name; |