fix up some network related troubles.fix up some network related troubles.
diff --git a/contiki/apps/httpd-cgi.c b/contiki/apps/httpd-cgi.c
index 0320c1e..495141b 100644
--- a/contiki/apps/httpd-cgi.c
+++ b/contiki/apps/httpd-cgi.c
@@ -28,7 +28,7 @@
*
* This file is part of the uIP TCP/IP stack.
*
- * $Id: httpd-cgi.c,v 1.9 2005/02/27 09:33:51 adamdunkels Exp $
+ * $Id: httpd-cgi.c,v 1.10 2007/06/02 07:32:06 ryohji Exp $
*
*/
@@ -202,7 +202,7 @@
static
PT_THREAD(processes(struct httpd_state *s, char *ptr))
{
- struct ek_proc *p;
+ static struct ek_proc *p;
PSOCK_BEGIN(&s->sout);
diff --git a/contiki/apps/httpd.c b/contiki/apps/httpd.c
index 468b60a..caadc02 100644
--- a/contiki/apps/httpd.c
+++ b/contiki/apps/httpd.c
@@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
- * $Id: httpd.c,v 1.9 2005/02/27 09:33:51 adamdunkels Exp $
+ * $Id: httpd.c,v 1.10 2007/06/02 07:32:06 ryohji Exp $
*/
#include "contiki.h"
@@ -169,7 +169,7 @@
static
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
{
- char *ptr;
+ static char *ptr;
PSOCK_BEGIN(&s->sout);
diff --git a/contiki/ek/ek.c b/contiki/ek/ek.c
index d723ba0..c570dc6 100644
--- a/contiki/ek/ek.c
+++ b/contiki/ek/ek.c
@@ -120,7 +120,7 @@
*
* This file is part of the "ek" event kernel.
*
- * $Id: ek.c,v 1.8 2005/02/22 22:46:33 adamdunkels Exp $
+ * $Id: ek.c,v 1.9 2007/06/02 07:32:05 ryohji Exp $
*
*/
@@ -255,7 +255,7 @@
{
ek_id_t id;
- for(id = 1; id < EK_CONF_MAXPROCS; ++id) {
+ for(id = 0; id < EK_CONF_MAXPROCS; ++id) {
if(ek_proclist[id] == NULL) {
break;
}