req->conn = NULL;
}
next->chain_fsp = req->chain_fsp;
- next->inbuf = (uint8_t *)req->inbuf;
+ next->inbuf = (const uint8_t *)req->inbuf;
req = next;
req->conn = switch_message(req->cmd, req);
wct = CVAL(buf, smb_wct);
vwv = (const uint16_t *)(buf + smb_vwv);
num_bytes = smb_buflen(buf);
- bytes = (uint8_t *)smb_buf_const(buf);
+ bytes = (const uint8_t *)smb_buf_const(buf);
if (!fn(cmd, wct, vwv, num_bytes, bytes, private_data)) {
return false;
case TEVENT_TRACE_AFTER_WAIT:
END_PROFILE_STAMP(smbd_idle, conn->smbd_idle_profstamp);
break;
+ default:
+ /* nothing */
+ break;
}
}