m.PR_ENDPT = parent;
m.PR_SLOT = child;
- m.PR_MEM_PTR = map_ptr;
+ m.PR_MEM_PTR = (char *) map_ptr;
r = _taskcall(SYSTASK, SYS_FORK, &m);
*child_endpoint = m.PR_ENDPT;
return r;
message copy_mess;
- copy_mess.VSCP_VEC_ADDR = vec;
+ copy_mess.VSCP_VEC_ADDR = (char *) vec;
copy_mess.VSCP_VEC_SIZE = els;
return(_taskcall(SYSTASK, SYS_VSAFECOPY, ©_mess));
* print buffer forever. (So buffer can't be on stack!)
*/
for(p = 0; procs[p] != NONE; p++) {
- printgrants[p] = cpf_grant_direct(procs[p], print_buf,
+ printgrants[p] = cpf_grant_direct(procs[p],
+ (vir_bytes) print_buf,
sizeof(print_buf), CPF_READ);
}
}
m.DIAG_BUF_COUNT = buf_count;
if(GRANT_VALID(printgrants[p])) {
m.m_type = DIAGNOSTICS_S;
- m.DIAG_PRINT_BUF_G = printgrants[p];
+ m.DIAG_PRINT_BUF_G = (char *) printgrants[p];
} else {
m.m_type = DIAGNOSTICS;
m.DIAG_PRINT_BUF_G = print_buf;