summaryrefslogtreecommitdiff
path: root/src/lib/irm.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-06-22 16:29:27 +0200
committerSander Vrijders <[email protected]>2016-06-22 16:29:27 +0200
commit34bcd67e4811be85e11253e4176ec9fec5c3bbef (patch)
tree97fa4a95c86661b36b38ccdd92552e9f7642919e /src/lib/irm.c
parentfa0a0dbc88adcf9cff8bf35a253f020a49ff4084 (diff)
downloadouroboros-34bcd67e4811be85e11253e4176ec9fec5c3bbef.tar.gz
ouroboros-34bcd67e4811be85e11253e4176ec9fec5c3bbef.zip
lib: Remove implementation specific errnos
This removes any implementation specific error numbers. Only errors that are implementation independent should be returned.
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r--src/lib/irm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c
index 01ee498c..8fd0a7e7 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -48,7 +48,7 @@ pid_t irm_create_ipcp(char * ipcp_name,
recv_msg = send_recv_irm_msg(&msg);
if (recv_msg == NULL)
- return -EIRM;
+ return -1;
if (recv_msg->has_result == false) {
irm_msg__free_unpacked(recv_msg, NULL);
@@ -77,7 +77,7 @@ int irm_destroy_ipcp(instance_name_t * api)
recv_msg = send_recv_irm_msg(&msg);
if (recv_msg == NULL)
- return -EIRM;
+ return -1;
if (recv_msg->has_result == false) {
irm_msg__free_unpacked(recv_msg, NULL);
@@ -149,7 +149,7 @@ int irm_bootstrap_ipcp(instance_name_t * api,
recv_msg = send_recv_irm_msg(&msg);
if (recv_msg == NULL) {
- return -EIRM;
+ return -1;
}
if (recv_msg->has_result == false) {
@@ -188,7 +188,7 @@ int irm_enroll_ipcp(instance_name_t * api,
recv_msg = send_recv_irm_msg(&msg);
if (recv_msg == NULL) {
free(msg.dif_name);
- return -EIRM;
+ return -1;
}
if (recv_msg->has_result == false) {
@@ -239,7 +239,7 @@ int irm_reg(char * name,
recv_msg = send_recv_irm_msg(&msg);
if (recv_msg == NULL)
- return -EIRM;
+ return -1;
if (recv_msg->has_result == false) {
irm_msg__free_unpacked(recv_msg, NULL);
@@ -285,7 +285,7 @@ int irm_unreg(char * name,
recv_msg = send_recv_irm_msg(&msg);
if (recv_msg == NULL)
- return -EIRM;
+ return -1;
if (recv_msg->has_result == false) {
irm_msg__free_unpacked(recv_msg, NULL);