projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b53110e
)
collectdctl: Fix problems with strict aliasing.
author
Florian Forster
<octo@huhu.verplant.org>
Wed, 18 Aug 2010 08:21:49 +0000
(10:21 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Wed, 18 Aug 2010 08:23:37 +0000
(10:23 +0200)
src/collectdctl.c
patch
|
blob
|
history
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
53bd618
..
60b1e64
100644
(file)
--- a/
src/collectdctl.c
+++ b/
src/collectdctl.c
@@
-254,7
+254,7
@@
static int flush (lcc_connection_t *c, int argc, char **argv)
}
}
else if (strcasecmp (key, "plugin") == 0) {
}
}
else if (strcasecmp (key, "plugin") == 0) {
- status = array_grow ((void *
*
)&plugins, &plugins_num,
+ status = array_grow ((void *)&plugins, &plugins_num,
sizeof (*plugins));
if (status != 0)
BAIL_OUT (status);
sizeof (*plugins));
if (status != 0)
BAIL_OUT (status);
@@
-262,7
+262,7
@@
static int flush (lcc_connection_t *c, int argc, char **argv)
plugins[plugins_num - 1] = value;
}
else if (strcasecmp (key, "identifier") == 0) {
plugins[plugins_num - 1] = value;
}
else if (strcasecmp (key, "identifier") == 0) {
- status = array_grow ((void *
*
)&identifiers, &identifiers_num,
+ status = array_grow ((void *)&identifiers, &identifiers_num,
sizeof (*identifiers));
if (status != 0)
BAIL_OUT (status);
sizeof (*identifiers));
if (status != 0)
BAIL_OUT (status);
@@
-280,7
+280,7
@@
static int flush (lcc_connection_t *c, int argc, char **argv)
}
if (plugins_num == 0) {
}
if (plugins_num == 0) {
- status = array_grow ((void *
*
)&plugins, &plugins_num, sizeof (*plugins));
+ status = array_grow ((void *)&plugins, &plugins_num, sizeof (*plugins));
if (status != 0)
BAIL_OUT (status);
if (status != 0)
BAIL_OUT (status);