projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20508b8
)
Return EINVAL instead of 0 on error.
author
Sven Trenkel
<collectd@semidefinite.de>
Wed, 9 Dec 2009 15:33:50 +0000
(16:33 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Thu, 10 Dec 2009 09:17:18 +0000
(10:17 +0100)
src/meta_data.c
patch
|
blob
|
history
diff --git
a/src/meta_data.c
b/src/meta_data.c
index
80b6dd1
..
6a336c4
100644
(file)
--- a/
src/meta_data.c
+++ b/
src/meta_data.c
@@
-245,7
+245,7
@@
int meta_data_type (meta_data_t *md, const char *key) /* {{{ */
meta_entry_t *e;
if ((md == NULL) || (key == NULL))
- return
0
;
+ return
-EINVAL
;
pthread_mutex_lock (&md->lock);
@@
-268,7
+268,7
@@
int meta_data_toc (meta_data_t *md, char ***toc) /* {{{ */
meta_entry_t *e;
if ((md == NULL) || (toc == NULL))
- return -
1
;
+ return -
EINVAL
;
pthread_mutex_lock (&md->lock);