summaryrefslogtreecommitdiff
path: root/src/lib/instance_name.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-22 16:16:58 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-22 16:16:58 +0200
commite24581b93fb3329a1c89b294da15e3375513cf89 (patch)
tree4af7b471aeeff9d5f6224c48fcaf067104ac0a07 /src/lib/instance_name.c
parentaa6255a605cac034089c78562c0d000aacd0af1e (diff)
parentfa0a0dbc88adcf9cff8bf35a253f020a49ff4084 (diff)
downloadouroboros-e24581b93fb3329a1c89b294da15e3375513cf89.tar.gz
ouroboros-e24581b93fb3329a1c89b294da15e3375513cf89.zip
Merged in sandervrijders/ouroboros/be (pull request #136)
lib: Add errnos specific for Ouroboros
Diffstat (limited to 'src/lib/instance_name.c')
-rw-r--r--src/lib/instance_name.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/instance_name.c b/src/lib/instance_name.c
index 10a432d5..844bb924 100644
--- a/src/lib/instance_name.c
+++ b/src/lib/instance_name.c
@@ -106,11 +106,11 @@ int instance_name_cpy(instance_name_t * dst,
instance_name_t * res;
if (src == NULL || dst == NULL)
- return -1;
+ return -EINVAL;
res = instance_name_init_from(dst, src->name, src->id);
if (res == NULL)
- return -1;
+ return -ENOMEM;
return 0;
}