From 4105ca953e12419cc2f95c49ce72d36a8c17c084 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 23 Mar 2016 14:49:05 +1100 Subject: [PATCH] ctdb-killtcp: Drop unnecessary casts Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tools/ctdb_killtcp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ctdb/tools/ctdb_killtcp.c b/ctdb/tools/ctdb_killtcp.c index 2723cb6fe00..cd016b867bf 100644 --- a/ctdb/tools/ctdb_killtcp.c +++ b/ctdb/tools/ctdb_killtcp.c @@ -162,12 +162,9 @@ static int tickle_connection_traverse(void *param, void *data) return 0; } - /* othervise, try tickling it again */ con->count++; - ctdb_sys_send_tcp( - (ctdb_sock_addr *)&con->dst_addr, - (ctdb_sock_addr *)&con->src_addr, - 0, 0, 0); + ctdb_sys_send_tcp(&con->dst_addr, &con->src_addr, 0, 0, 0); + return 0; }