{
struct sys_thread *thread;
- thread = V3_Malloc(sizeof(struct sys_thread)); //!!!!!! malloc
+ thread = (struct sys_thread *)V3_Malloc(sizeof(struct sys_thread)); //!!!!!! malloc
if (thread != NULL) {
//pthread_mutex_lock(&threads_mutex);
{
int code;
//pthread_t tmp;
- struct Kernel_Thread tmp;
+ struct Kernel_Thread *tmp;
struct sys_thread *st = NULL;
-
+ tmp = (struct Kernel_Thread *)V3_Malloc(sizeof(struct Kernel_Thread));
code = pthread_create(&tmp,
NULL,
{
struct sys_mbox *mbox;
- mbox = V3_Malloc(sizeof(struct sys_mbox));
+ mbox = (struct sys_mbox *)V3_Malloc(sizeof(struct sys_mbox));
if (mbox != NULL) {
mbox->first = mbox->last = 0;
mbox->mail = sys_sem_new_(0);
{
struct sys_sem *sem;
- sem = V3_Malloc(sizeof(struct sys_sem));
+ sem = (struct sys_sem *)V3_Malloc(sizeof(struct sys_sem));
if (sem != NULL) {
sem->c = count;