projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
daemon
/
meta_data.c
diff --git
a/src/daemon/meta_data.c
b/src/daemon/meta_data.c
index
cb8a195
..
f87e35e
100644
(file)
--- a/
src/daemon/meta_data.c
+++ b/
src/daemon/meta_data.c
@@
-314,7
+314,7
@@
int meta_data_toc (meta_data_t *md, char ***toc) /* {{{ */
pthread_mutex_lock (&md->lock);
for (e = md->head; e != NULL; e = e->next)
pthread_mutex_lock (&md->lock);
for (e = md->head; e != NULL; e = e->next)
- ++count;
+ ++count;
if (count == 0)
{
if (count == 0)
{
@@
-325,7
+325,7
@@
int meta_data_toc (meta_data_t *md, char ***toc) /* {{{ */
*toc = calloc(count, sizeof(**toc));
for (e = md->head; e != NULL; e = e->next)
(*toc)[i++] = strdup(e->key);
*toc = calloc(count, sizeof(**toc));
for (e = md->head; e != NULL; e = e->next)
(*toc)[i++] = strdup(e->key);
-
+
pthread_mutex_unlock (&md->lock);
return count;
} /* }}} int meta_data_toc */
pthread_mutex_unlock (&md->lock);
return count;
} /* }}} int meta_data_toc */
@@
-504,7
+504,7
@@
int meta_data_get_string (meta_data_t *md, /* {{{ */
ERROR ("meta_data_get_string: md_strdup failed.");
return (-ENOMEM);
}
ERROR ("meta_data_get_string: md_strdup failed.");
return (-ENOMEM);
}
-
+
pthread_mutex_unlock (&md->lock);
*value = temp;
pthread_mutex_unlock (&md->lock);
*value = temp;