projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: cleanup malloc calls
[collectd.git]
/
src
/
match_regex.c
diff --git
a/src/match_regex.c
b/src/match_regex.c
index
4fa6ce7
..
7429ffa
100644
(file)
--- a/
src/match_regex.c
+++ b/
src/match_regex.c
@@
-140,7
+140,7
@@
static int mr_config_add_regex (mr_regex_t **re_head, /* {{{ */
return (-1);
}
return (-1);
}
- re =
(mr_regex_t *)
malloc (sizeof (*re));
+ re = malloc (sizeof (*re));
if (re == NULL)
{
log_err ("mr_config_add_regex: malloc failed.");
if (re == NULL)
{
log_err ("mr_config_add_regex: malloc failed.");
@@
-194,7
+194,7
@@
static int mr_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
int status;
int i;
int status;
int i;
- m =
(mr_match_t *)
malloc (sizeof (*m));
+ m = malloc (sizeof (*m));
if (m == NULL)
{
log_err ("mr_create: malloc failed.");
if (m == NULL)
{
log_err ("mr_create: malloc failed.");