return (NULL);
sz = strlen (orig) + 1;
- dest = (char *) malloc (sz);
+ dest = malloc (sz);
if (dest == NULL)
return (NULL);
return (-1);
}
- m = (fc_match_t *) malloc (sizeof (*m));
+ m = malloc (sizeof (*m));
if (m == NULL)
{
ERROR ("fc_config_add_match: malloc failed.");
return (-1);
}
- t = (fc_target_t *) malloc (sizeof (*t));
+ t = malloc (sizeof (*t));
if (t == NULL)
{
ERROR ("fc_config_add_target: malloc failed.");
return (-1);
}
- rule = (fc_rule_t *) malloc (sizeof (*rule));
+ rule = malloc (sizeof (*rule));
if (rule == NULL)
{
ERROR ("fc_config_add_rule: malloc failed.");
if (chain == NULL)
{
- chain = (fc_chain_t *) malloc (sizeof (*chain));
+ chain = malloc (sizeof (*chain));
if (chain == NULL)
{
ERROR ("fc_config_add_chain: malloc failed.");
DEBUG ("fc_register_match (%s);", name);
- m = (fc_match_t *) malloc (sizeof (*m));
+ m = malloc (sizeof (*m));
if (m == NULL)
return (-ENOMEM);
memset (m, 0, sizeof (*m));
DEBUG ("fc_register_target (%s);", name);
- t = (fc_target_t *) malloc (sizeof (*t));
+ t = malloc (sizeof (*t));
if (t == NULL)
return (-ENOMEM);
memset (t, 0, sizeof (*t));