mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
removed superfluous casts from void *
This commit is contained in:
parent
61b3e45bca
commit
9a3d19ce6c
2 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@ int config_parse_socket(config_setting_t *cfg, struct node *n)
|
|||
const char *local, *remote;
|
||||
int ret;
|
||||
|
||||
struct socket *s = (struct socket *) alloc(sizeof(struct socket));
|
||||
struct socket *s = alloc(sizeof(struct socket));
|
||||
|
||||
if (!config_setting_lookup_string(cfg, "remote", &remote))
|
||||
cerror(cfg, "Missing remote address for node '%s'", n->name);
|
||||
|
|
|
@ -66,7 +66,7 @@ static void * path_send(void *arg)
|
|||
/** Receive messages */
|
||||
static void * path_run(void *arg)
|
||||
{
|
||||
struct path *p = (struct path *) arg;
|
||||
struct path *p = arg;
|
||||
struct msg *m = alloc(sizeof(struct msg));
|
||||
if (!m)
|
||||
error("Failed to allocate memory for message!");
|
||||
|
|
Loading…
Add table
Reference in a new issue