summaryrefslogtreecommitdiff
path: root/ctdb/client
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-04-22 01:27:50 +1000
committerMartin Schwenke <martins@samba.org>2016-05-03 04:43:20 +0200
commitf288ce84281c62cd8e0026caf3dd9c89acc2a2ef (patch)
tree12aa8c1b92a6fadbb45993bad190ea3b52a636b0 /ctdb/client
parent1fcedeb99bd1d2340dbecdf6f8d7e7efc4601736 (diff)
downloadsamba-f288ce84281c62cd8e0026caf3dd9c89acc2a2ef.tar.gz
ctdb-client: Drop unnecessary discard_const
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/client')
-rw-r--r--ctdb/client/client_connect.c2
1 files changed, 1 insertions, 1 deletions
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;