From f288ce84281c62cd8e0026caf3dd9c89acc2a2ef Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Fri, 22 Apr 2016 01:27:50 +1000 Subject: ctdb-client: Drop unnecessary discard_const Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/client/client_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctdb/client') diff --git a/ctdb/client/client_connect.c b/ctdb/client/client_connect.c index f2fe6737481..3cfcd160bee 100644 --- a/ctdb/client/client_connect.c +++ b/ctdb/client/client_connect.c @@ -166,7 +166,7 @@ static void client_read_handler(uint8_t *buf, size_t buflen, struct ctdb_req_header hdr; int ret; - ret = ctdb_req_header_pull(discard_const(buf), buflen, &hdr); + ret = ctdb_req_header_pull(buf, buflen, &hdr); if (ret != 0) { DEBUG(DEBUG_WARNING, ("invalid header, ret=%d\n", ret)); return; -- cgit v1.2.1