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

s4:torture/rap/rap.c - quiet discard const warning

This commit is contained in:
Matthias Dieter Wallnöfer 2010-05-21 23:23:58 +02:00
parent bd3e70c1be
commit 6af5e7cde1

View File

@ -212,7 +212,7 @@ static NTSTATUS rap_pull_string(TALLOC_CTX *mem_ctx, struct ndr_pull *ndr,
return NT_STATUS_INVALID_PARAMETER;
*dest = talloc_zero_array(mem_ctx, char, len+1);
pull_string((char *)*dest, p, len+1, len, STR_ASCII);
pull_string(discard_const_p(char, *dest), p, len+1, len, STR_ASCII);
return NT_STATUS_OK;
}