s4:libcli/smb2: fix c++ warning
authorStefan Metzmacher <metze@samba.org>
Thu, 5 Feb 2009 17:18:33 +0000 (18:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Feb 2009 17:18:33 +0000 (18:18 +0100)
metze

source4/libcli/smb2/request.c

index 9dcc415b7c96770e97dc4ed4f07fefc40a613ed6..e1d6b0e7a679e87f2f65c50b5df56e2355c6e7c8 100644 (file)
@@ -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);
        }