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:
parent
1fcedeb99b
commit
f288ce8428
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user