projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c632c2e
)
target_scale: Fixed a `break strict-aliasing rules' compiler warning.
author
Sebastian Harl
<sh@tokkee.org>
Tue, 30 Mar 2010 20:55:06 +0000
(22:55 +0200)
committer
Sebastian Harl
<sh@tokkee.org>
Tue, 30 Mar 2010 20:55:06 +0000
(22:55 +0200)
… identified by GCC 4.4.3 using -O3.
src/target_scale.c
patch
|
blob
|
history
diff --git
a/src/target_scale.c
b/src/target_scale.c
index
6b261c7
..
29fecdf
100644
(file)
--- a/
src/target_scale.c
+++ b/
src/target_scale.c
@@
-302,11
+302,15
@@
static int ts_config_set_double (double *ret, oconfig_item_t *ci) /* {{{ */
static int ts_destroy (void **user_data) /* {{{ */
{
+ ts_data_t **data;
+
if (user_data == NULL)
return (-EINVAL);
- free (*user_data);
- *user_data = NULL;
+ data = (ts_data_t **) user_data;
+
+ free (*data);
+ *data = NULL;
return (0);
} /* }}} int ts_destroy */