diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-02 15:08:09 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-02 15:08:09 +0000 |
commit | 91c5b43fb0efbb6c523bb558d8ae4297e623b35b (patch) | |
tree | f615dc169c476e3bc90f91aacd126b399bdf8311 /nuttx/netutils/thttpd/thttpd.c | |
parent | b83e24ec29ef98ff50f22b4029794034690e5936 (diff) | |
download | px4-nuttx-91c5b43fb0efbb6c523bb558d8ae4297e623b35b.tar.gz px4-nuttx-91c5b43fb0efbb6c523bb558d8ae4297e623b35b.tar.bz2 px4-nuttx-91c5b43fb0efbb6c523bb558d8ae4297e623b35b.zip |
Initialize THTTPD integration changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2006 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/thttpd.c')
-rw-r--r-- | nuttx/netutils/thttpd/thttpd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/netutils/thttpd/thttpd.c b/nuttx/netutils/thttpd/thttpd.c index a2aa1c330..aac9e4425 100644 --- a/nuttx/netutils/thttpd/thttpd.c +++ b/nuttx/netutils/thttpd/thttpd.c @@ -175,7 +175,7 @@ static void shut_down(void) } } - if (hs != (httpd_server *) 0) + if (hs) { httpd_server *ths = hs; hs = (httpd_server *) 0; @@ -747,6 +747,8 @@ int thttpd_main(int argc, char **argv) int ret; #endif + nvdbg("THTTPD started\n"); + /* Setup host address */ #ifdef CONFIG_NET_IPv6 @@ -803,9 +805,11 @@ int thttpd_main(int argc, char **argv) /* Initialize the HTTP layer */ + nvdbg("Calling httpd_initialize()\n"); hs = httpd_initialize(&sa, cwd); if (!hs) { + ndbg("httpd_initialize() failed\n"); exit(1); } @@ -870,6 +874,7 @@ int thttpd_main(int argc, char **argv) /* Main loop */ + nvdbg("Entering the main loop\n"); (void)gettimeofday(&tv, (struct timezone *)0); while ((!terminate) || num_connects > 0) { |