diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-06 23:38:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-06 23:38:14 +0000 |
commit | 50470d26f72a21786f23219f157a12aab64f2683 (patch) | |
tree | 8c2a2c8e1ab788b5c81f338e93bc999484134670 /nuttx/netutils | |
parent | 7a21220ebd5cef442fb059c90e18ff90232d8dc9 (diff) | |
download | px4-nuttx-50470d26f72a21786f23219f157a12aab64f2683.tar.gz px4-nuttx-50470d26f72a21786f23219f157a12aab64f2683.tar.bz2 px4-nuttx-50470d26f72a21786f23219f157a12aab64f2683.zip |
Breaking uip.c into smaller functions/files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@374 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils')
-rw-r--r-- | nuttx/netutils/webserver/httpd-cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/netutils/webserver/httpd-cgi.c b/nuttx/netutils/webserver/httpd-cgi.c index 9870961e6..1c7965374 100644 --- a/nuttx/netutils/webserver/httpd-cgi.c +++ b/nuttx/netutils/webserver/httpd-cgi.c @@ -164,7 +164,7 @@ static void tcp_stats(struct httpd_state *pstate, char *ptr) #ifdef CONFIG_HTTPDCGI_NETSTATS static void net_stats(struct httpd_state *pstate, char *ptr) { -#if UIP_STATISTICS +#ifdef CONFIG_NET_STATISTICS char buffer[16]; for(pstate->count = 0; pstate->count < sizeof(uip_stat) / sizeof(uip_stats_t); ++pstate->count) @@ -172,6 +172,6 @@ static void net_stats(struct httpd_state *pstate, char *ptr) snprintf(buffer, 16, "%5u\n", ((uip_stats_t *)&uip_stat)[pstate->count]); send(pstate->sockout, buffer, strlen(buffer), 0); } -#endif /* UIP_STATISTICS */ +#endif } #endif |