mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-07-13 02:29:01 +00:00
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.
|
* 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 <string.h>
|
||||||
|
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
#include "net/rime/collect-neighbor.h"
|
||||||
#include "httpd.h"
|
#include "httpd.h"
|
||||||
#include "httpd-cgi.h"
|
#include "httpd-cgi.h"
|
||||||
#include "httpd-fs.h"
|
#include "httpd-fs.h"
|
||||||
@ -167,7 +168,7 @@ static unsigned short
|
|||||||
make_neighbor(void *arg)
|
make_neighbor(void *arg)
|
||||||
{
|
{
|
||||||
struct httpd_state *s = (struct httpd_state *)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) {
|
if(n == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
@ -238,7 +239,7 @@ httpd_cgi_init(void)
|
|||||||
httpd_cgi_add(&nodeid);
|
httpd_cgi_add(&nodeid);
|
||||||
httpd_cgi_add(&neighbors);
|
httpd_cgi_add(&neighbors);
|
||||||
|
|
||||||
announcement_register(&announcement, 31, 0,
|
announcement_register(&announcement, 31,
|
||||||
received_announcement);
|
received_announcement);
|
||||||
announcement_listen(2);
|
announcement_listen(2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user