From 9a3d19ce6c7f5af9fd84462ca6886cdbe84a2ade Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 17 Mar 2015 23:23:13 +0100 Subject: [PATCH] removed superfluous casts from void * --- server/src/cfg.c | 2 +- server/src/path.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/cfg.c b/server/src/cfg.c index 2999f140d..2b03dd23b 100644 --- a/server/src/cfg.c +++ b/server/src/cfg.c @@ -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); diff --git a/server/src/path.c b/server/src/path.c index 8d0e28516..d2c55df3d 100644 --- a/server/src/path.c +++ b/server/src/path.c @@ -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!");