projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/types_list.c: Ignore lines which begin with a hash sign.
[collectd.git]
/
src
/
meta_data.c
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);