Changed the parameter 'char * data' of process_start to the

type process_data_t. This was an artifact when the choice was
made to use the void * type for the data parameter in processes.

Changed parameter 'void * data' of process_post_synch to
process_data_t for consistency.

Checked all the uses of process_start() in contiki and fixed casts
of the data parameter.
This commit is contained in:
Roy Scheefhals 2014-06-12 13:40:28 +02:00
parent cff30a394b
commit 1058ea986a
14 changed files with 18 additions and 18 deletions

View file

@ -96,7 +96,7 @@ process_alloc_event(void)
}
/*---------------------------------------------------------------------------*/
void
process_start(struct process *p, const char *arg)
process_start(struct process *p, process_data_t data)
{
struct process *q;
@ -117,7 +117,7 @@ process_start(struct process *p, const char *arg)
PRINTF("process: starting '%s'\n", PROCESS_NAME_STRING(p));
/* Post a synchronous initialization event to the process. */
process_post_synch(p, PROCESS_EVENT_INIT, (process_data_t)arg);
process_post_synch(p, PROCESS_EVENT_INIT, data);
}
/*---------------------------------------------------------------------------*/
static void