summaryrefslogtreecommitdiff
path: root/src/lib/instance_name.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-06-22 16:05:56 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-06-22 16:07:56 +0200
commitfa0a0dbc88adcf9cff8bf35a253f020a49ff4084 (patch)
tree4af7b471aeeff9d5f6224c48fcaf067104ac0a07 /src/lib/instance_name.c
parentaa6255a605cac034089c78562c0d000aacd0af1e (diff)
downloadouroboros-fa0a0dbc88adcf9cff8bf35a253f020a49ff4084.tar.gz
ouroboros-fa0a0dbc88adcf9cff8bf35a253f020a49ff4084.zip
lib: Add errnos specific for Ouroboros
This adds error numbers specificly for Ouroboros. It also refactors some of the header files that are installed. Fixes #2
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;
}