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

@ -298,7 +298,7 @@ start_command(char *commandline, struct shell_command *child)
c->child = child;
/* printf("shell: start_command starting '%s'\n", c->process->name);*/
/* Start a new process for the command. */
process_start(c->process, args);
process_start(c->process, (void *)args);
}
return c;
@ -364,7 +364,7 @@ shell_input(char *commandline, int commandline_len)
if(commandline[0] == '~' &&
commandline[1] == 'K') {
/* process_start(&shell_killall_process, commandline);*/
/* process_start(&shell_killall_process, (void *)commandline);*/
if(front_process != &shell_process) {
process_exit(front_process);
}