Add a compile test for the tcp-socket example

This commit is contained in:
Adam Dunkels 2014-04-09 21:56:29 +02:00
parent ca5652d981
commit 367eed96f4
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@
*
*/
#include "contiki.h"
#include "contiki-net.h"
#include <stdio.h>
#include <stdlib.h>
@ -106,7 +106,7 @@ PROCESS_THREAD(tcp_server_process, ev, data)
int len, tosend;
#define MIN(a,b) ((a)<(b)?(a):(b))
tosend = MIN(bytes_to_send, sizeof(outputbuf));
len = tcp_socket_send(&socket, "", tosend);
len = tcp_socket_send(&socket, (uint8_t *)"", tosend);
bytes_to_send -= len;
}

View File

@ -27,6 +27,7 @@ sky-ip/sky \
sky-shell/sky \
sky-shell-exec/sky \
sky-shell-webserver/sky \
tcp-socket/minimal-net \
telnet-server/minimal-net \
webserver/minimal-net \
webserver-ipv6/exp5438 \