diff options
author | dimitri staessens <[email protected]> | 2017-04-12 11:43:46 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-04-12 11:43:46 +0000 |
commit | cc0816154b756b870264272315fe5a6f1ed06efe (patch) | |
tree | 1f8b488ef87a53bf176135187408d1d1d454a433 /src/lib | |
parent | 4f2c2a52fbc0d7fcf43f791ffbac4e7c2cbd5c89 (diff) | |
parent | a4c78bb29b5ad9ac18e5edbbc5f81c54c67ff4d4 (diff) | |
download | ouroboros-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.c | 8 |
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; } } |