Make the Protosockets examples possible to compile.

This commit is contained in:
Nicolas Tsiftes 2014-09-05 16:25:25 +02:00
parent 97037763ad
commit 4c4c468907
2 changed files with 8 additions and 8 deletions

View file

@ -28,7 +28,7 @@ static struct psock ps;
* We must have somewhere to put incoming data, and we use a 10 byte
* buffer for this purpose.
*/
static char buffer[10];
static uint8_t buffer[10];
/*---------------------------------------------------------------------------*/
/*
@ -90,9 +90,10 @@ PT_THREAD(handle_connection(struct psock *p))
}
/*---------------------------------------------------------------------------*/
/*
* We declare the process.
* We declare the process and specify that it should be automatically started.
*/
PROCESS(example_psock_server_process, "Example protosocket server");
AUTOSTART_PROCESSES(&example_psock_server_process);
/*---------------------------------------------------------------------------*/
/*
* The definition of the process.