From 3caaf6a84c9643aee9aef5f81caf010445d1952a Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 17 Oct 2009 22:37:24 +0200 Subject: s4:torture/raw/samba3misc - Add "discard_const_p" macro before a string --- source4/torture/raw/samba3misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/raw') diff --git a/source4/torture/raw/samba3misc.c b/source4/torture/raw/samba3misc.c index e8dc12fd40..2e85a34761 100644 --- a/source4/torture/raw/samba3misc.c +++ b/source4/torture/raw/samba3misc.c @@ -1007,7 +1007,7 @@ bool torture_samba3_oplock_logoff(struct torture_context *tctx) echo_req.in.repeat_count = 1; echo_req.in.size = 1; - echo_req.in.data = (uint8_t *)""; + echo_req.in.data = discard_const_p(uint8_t, ""); status = smb_raw_echo(cli->session->transport, &echo_req); if (!NT_STATUS_IS_OK(status)) { -- cgit