Updated to latest announcement API and fixed typo
This commit is contained in:
parent
3670fac618
commit
1b2f36cdd9
|
@ -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 <string.h>
|
||||
|
||||
#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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue