diff --git a/examples/sky-ip/ajax-cgi.c b/examples/sky-ip/ajax-cgi.c index 123268024..5a11b616e 100644 --- a/examples/sky-ip/ajax-cgi.c +++ b/examples/sky-ip/ajax-cgi.c @@ -28,7 +28,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: ajax-cgi.c,v 1.6 2010/04/04 12:30:39 adamdunkels Exp $ + * $Id: ajax-cgi.c,v 1.7 2010/04/09 13:19:05 nifi Exp $ * */ @@ -46,6 +46,7 @@ #include #include "contiki-net.h" +#include "net/rime/collect-neighbor.h" #include "httpd.h" #include "httpd-cgi.h" #include "httpd-fs.h" @@ -167,7 +168,7 @@ static unsigned short make_neighbor(void *arg) { struct httpd_state *s = (struct httpd_state *)arg; - struct collet_neighbor *n = collet_neighbor_get(s->u.count); + struct collect_neighbor *n = collect_neighbor_get(s->u.count); if(n == NULL) { return 0; @@ -238,7 +239,7 @@ httpd_cgi_init(void) httpd_cgi_add(&nodeid); httpd_cgi_add(&neighbors); - announcement_register(&announcement, 31, 0, + announcement_register(&announcement, 31, received_announcement); announcement_listen(2);