diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-15 22:59:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-15 22:59:59 +0000 |
commit | 76cb110245eb7c55eb7c01226f0d2c3a9bed645f (patch) | |
tree | 186d1c26a49f9e50e60486ef31d1e76f68f1de83 /nuttx/netutils/thttpd/tdate_parse.c | |
parent | 6c510b8a838ab27c348c2f5bac97211cbfaad3d6 (diff) | |
download | px4-nuttx-76cb110245eb7c55eb7c01226f0d2c3a9bed645f.tar.gz px4-nuttx-76cb110245eb7c55eb7c01226f0d2c3a9bed645f.tar.bz2 px4-nuttx-76cb110245eb7c55eb7c01226f0d2c3a9bed645f.zip |
Continued THTTPD debug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2023 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/tdate_parse.c')
-rw-r--r-- | nuttx/netutils/thttpd/tdate_parse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/netutils/thttpd/tdate_parse.c b/nuttx/netutils/thttpd/tdate_parse.c index f1e657029..2403ea6ca 100644 --- a/nuttx/netutils/thttpd/tdate_parse.c +++ b/nuttx/netutils/thttpd/tdate_parse.c @@ -45,6 +45,7 @@ #include <string.h> #include <ctype.h> #include <time.h> +#include <debug.h> #include "tdate_parse.h" @@ -170,6 +171,7 @@ static int scan_mon(char *str_mon, long *tm_monP) time_t tdate_parse(char *str) { +#if 0 // REVISIT -- doesn't work struct tm tm; char *cp; char str_mon[32]; @@ -184,7 +186,10 @@ time_t tdate_parse(char *str) long tm_wday; #endif + nvdbg("str: \"%s\"\n", str); + /* Initialize. */ + (void)memset((char *)&tm, 0, sizeof(struct tm)); /* Skip initial whitespace ourselves - sscanf is clumsy at this. */ @@ -315,5 +320,8 @@ time_t tdate_parse(char *str) } return mktime(&tm); +#else + return 0; // for now +#endif } |