diff --git a/apps/webserver/httpd-cgi.c b/apps/webserver/httpd-cgi.c index 3496fc08a..7f66fa631 100644 --- a/apps/webserver/httpd-cgi.c +++ b/apps/webserver/httpd-cgi.c @@ -28,7 +28,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: httpd-cgi.c,v 1.2 2006/08/09 16:13:39 bg- Exp $ + * $Id: httpd-cgi.c,v 1.3 2007/04/07 01:31:29 oliverschmidt Exp $ * */ @@ -95,6 +95,10 @@ static const char time_wait[] = /* "TIME-WAIT,"*/ static const char last_ack[] = /* "LAST-ACK"*/ {0x4c, 0x41, 0x53, 0x54, 0x2d, 0x41, 0x43, 0x4b, 0}; +static const char none[] = "NONE"; +static const char init[] = "INIT"; +static const char running[] = "RUNNING"; +static const char needs_poll[] = "NEEDS POLL"; static const char *states[] = { closed, @@ -105,7 +109,11 @@ static const char *states[] = { fin_wait_2, closing, time_wait, - last_ack}; + last_ack, + none, + init, + running, + needs_poll}; /*---------------------------------------------------------------------------*/ @@ -185,34 +193,27 @@ PT_THREAD(tcp_stats(struct httpd_state *s, char *ptr)) } /*---------------------------------------------------------------------------*/ static unsigned short -make_processes(void *s) +make_processes(void *p) { - struct process *p = (struct process *)s; char name[40]; - strncpy(name, p->name, 40); + strncpy(name, ((struct process *)p)->name, 40); petsciiconv_toascii(name, 40); return sprintf((char *)uip_appdata, - "