1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-client: Drop unnecessary discard_const

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2016-04-22 01:27:50 +10:00 committed by Martin Schwenke
parent 1fcedeb99b
commit f288ce8428

View File

@ -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;