diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-11 14:49:02 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-11 14:49:02 +0000 |
commit | a3c2d86a3cc50d21fc6862c7b703ce2f2a8ea8d4 (patch) | |
tree | 1eec6e0749b17d8fcccebefdf0701bf5f818b5a5 /nuttx/netutils | |
parent | 5aa10a765807c59b4ba7e8bc546723125992eacc (diff) | |
download | px4-nuttx-a3c2d86a3cc50d21fc6862c7b703ce2f2a8ea8d4.tar.gz px4-nuttx-a3c2d86a3cc50d21fc6862c7b703ce2f2a8ea8d4.tar.bz2 px4-nuttx-a3c2d86a3cc50d21fc6862c7b703ce2f2a8ea8d4.zip |
Fix compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@444 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils')
-rw-r--r-- | nuttx/netutils/webserver/httpd-cgi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/netutils/webserver/httpd-cgi.c b/nuttx/netutils/webserver/httpd-cgi.c index 9561d1989..baf671fa8 100644 --- a/nuttx/netutils/webserver/httpd-cgi.c +++ b/nuttx/netutils/webserver/httpd-cgi.c @@ -166,11 +166,12 @@ static void net_stats(struct httpd_state *pstate, char *ptr) { #ifdef CONFIG_NET_STATISTICS char buffer[16]; + int i; - for(pstate->count = 0; pstate->count < sizeof(uip_stat) / sizeof(uip_stats_t); ++pstate->count) + for (i = 0; i < sizeof(uip_stat) / sizeof(uip_stats_t); i++) { - snprintf(buffer, 16, "%5u\n", ((uip_stats_t *)&uip_stat)[pstate->count]); - send(pstate->sockout, buffer, strlen(buffer), 0); + snprintf(buffer, 16, "%5u\n", ((uip_stats_t *)&uip_stat)[i]); + send(pstate->ht_sockfd, buffer, strlen(buffer), 0); } #endif } |