switch (cmd) {
case SMBtrans:
pad[0] = 0;
- iov[0].iov_base = pad;
+ iov[0].iov_base = (void *)pad;
iov[0].iov_len = 1;
- iov[1].iov_base = state->pipe_name_conv;
+ iov[1].iov_base = (void *)state->pipe_name_conv;
iov[1].iov_len = state->pipe_name_conv_len;
wct = 14 + state->num_setup;
param_offset += iov[0].iov_len + iov[1].iov_len;
pad[0] = 0;
pad[1] = 'D'; /* Copy this from "old" 3.0 behaviour */
pad[2] = ' ';
- iov[0].iov_base = pad;
+ iov[0].iov_base = (void *)pad;
iov[0].iov_len = 3;
wct = 14 + state->num_setup;
param_offset += 3;
if (state->param_sent < state->num_param) {
this_param = MIN(state->num_param - state->param_sent,
useable_space);
- iov[0].iov_base = state->param + state->param_sent;
+ iov[0].iov_base = (void *)(state->param + state->param_sent);
iov[0].iov_len = this_param;
iov += 1;
}
if (state->data_sent < state->num_data) {
this_data = MIN(state->num_data - state->data_sent,
useable_space - this_param);
- iov[0].iov_base = state->data + state->data_sent;
+ iov[0].iov_base = (void *)(state->data + state->data_sent);
iov[0].iov_len = this_data;
iov += 1;
}
ZERO_STRUCT(state->rdata);
if ((pipe_name != NULL)
- && (!convert_string_allocate(state, CH_UNIX,
- cli_ucs2(cli) ? CH_UTF16LE : CH_DOS,
- pipe_name, strlen(pipe_name) + 1,
- &state->pipe_name_conv,
- &state->pipe_name_conv_len, true))) {
+ && (!convert_string_talloc(state, CH_UNIX,
+ cli_ucs2(cli) ? CH_UTF16LE : CH_DOS,
+ pipe_name, strlen(pipe_name) + 1,
+ &state->pipe_name_conv,
+ &state->pipe_name_conv_len, true))) {
tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
return tevent_req_post(req, ev);
}