summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-04-12 11:43:46 +0000
committerSander Vrijders <[email protected]>2017-04-12 11:43:46 +0000
commitcc0816154b756b870264272315fe5a6f1ed06efe (patch)
tree1f8b488ef87a53bf176135187408d1d1d454a433 /src/lib
parent4f2c2a52fbc0d7fcf43f791ffbac4e7c2cbd5c89 (diff)
parenta4c78bb29b5ad9ac18e5edbbc5f81c54c67ff4d4 (diff)
downloadouroboros-cc0816154b756b870264272315fe5a6f1ed06efe.tar.gz
ouroboros-cc0816154b756b870264272315fe5a6f1ed06efe.zip
Merged in dstaesse/ouroboros/be-man (pull request #475)
doc: Add man pages for flow allocation
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 433fb93b..18890234 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -268,7 +268,7 @@ int ap_init(const char * ap_name)
if (ai.fqset == NULL) {
bmp_destroy(ai.fqueues);
bmp_destroy(ai.fds);
- return -1;
+ return -ENOMEM;
}
ai.rdrb = shm_rdrbuff_open();
@@ -285,7 +285,7 @@ int ap_init(const char * ap_name)
shm_flow_set_destroy(ai.fqset);
bmp_destroy(ai.fqueues);
bmp_destroy(ai.fds);
- return -1;
+ return -ENOMEM;
}
for (i = 0; i < AP_MAX_FLOWS; ++i)
@@ -298,7 +298,7 @@ int ap_init(const char * ap_name)
shm_flow_set_destroy(ai.fqset);
bmp_destroy(ai.fqueues);
bmp_destroy(ai.fds);
- return -1;
+ return -ENOMEM;
}
if (ap_name != NULL) {
@@ -319,7 +319,7 @@ int ap_init(const char * ap_name)
shm_flow_set_destroy(ai.fqset);
bmp_destroy(ai.fqueues);
bmp_destroy(ai.fds);
- return -1;
+ return -EIRMD;
}
}