summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-05 18:18:33 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-05 18:18:33 +0100
commitf023bf94f1cfb0523cbbd24b5a44c6ae6450f261 (patch)
tree4ead1f2dfb5ecff52570525620e371fda7019965
parent40c3ab2fbc39e2fcd2e6713ecb08fe7b5b61ba17 (diff)
downloadsamba-f023bf94f1cfb0523cbbd24b5a44c6ae6450f261.tar.gz
samba-f023bf94f1cfb0523cbbd24b5a44c6ae6450f261.tar.bz2
samba-f023bf94f1cfb0523cbbd24b5a44c6ae6450f261.zip
s4:libcli/smb2: fix c++ warning
metze
-rw-r--r--source4/libcli/smb2/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/smb2/request.c b/source4/libcli/smb2/request.c
index 9dcc415b7c..e1d6b0e7a6 100644
--- a/source4/libcli/smb2/request.c
+++ b/source4/libcli/smb2/request.c
@@ -701,7 +701,7 @@ NTSTATUS smb2_push_o16s16_string(struct smb2_request_buffer *buf,
}
if (*str == 0) {
- blob.data = discard_const(str);
+ blob.data = discard_const_p(uint8_t, str);
blob.length = 0;
return smb2_push_o16s16_blob(buf, ofs, blob);
}