projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_kafka: ensure key is properly hashed to select partition
[collectd.git]
/
src
/
virt.c
diff --git
a/src/virt.c
b/src/virt.c
index
6824b13
..
e5a8725
100644
(file)
--- a/
src/virt.c
+++ b/
src/virt.c
@@
-327,8
+327,8
@@
lv_init (void)
{
if (virInitialize () != 0)
return -1;
{
if (virInitialize () != 0)
return -1;
-
- return 0;
+ else
+
return 0;
}
static int
}
static int
@@
-686,8
+686,8
@@
refresh_lists (void)
int *domids;
/* Get list of domains. */
int *domids;
/* Get list of domains. */
- domids = malloc (sizeof (
int
) * n);
- if (domids ==
0
) {
+ domids = malloc (sizeof (
*domids
) * n);
+ if (domids ==
NULL
) {
ERROR (PLUGIN_NAME " plugin: malloc failed.");
return -1;
}
ERROR (PLUGIN_NAME " plugin: malloc failed.");
return -1;
}
@@
-833,7
+833,7
@@
refresh_lists (void)
}
static void
}
static void
-free_domains ()
+free_domains (
void
)
{
int i;
{
int i;
@@
-866,7
+866,7
@@
add_domain (virDomainPtr dom)
}
static void
}
static void
-free_block_devices ()
+free_block_devices (
void
)
{
int i;
{
int i;
@@
-906,7
+906,7
@@
add_block_device (virDomainPtr dom, const char *path)
}
static void
}
static void
-free_interface_devices ()
+free_interface_devices (
void
)
{
int i;
{
int i;