From 3b5adf79dc8e867f485148c201a9e5f9ee50acd3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 12 Jun 2015 11:52:49 -0600 Subject: [PATCH] Add asctime(), asctime_r(), ctime(), and ctime_r(). --- netutils/thttpd/Kconfig | 1 + netutils/thttpd/thttpd_strings.c | 2 +- netutils/thttpd/thttpd_strings.h | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/netutils/thttpd/Kconfig b/netutils/thttpd/Kconfig index 0b27283b4..ecd3f00f2 100644 --- a/netutils/thttpd/Kconfig +++ b/netutils/thttpd/Kconfig @@ -308,6 +308,7 @@ config THTTPD_TILDE_MAP2 config THTTPD_GENERATE_INDICES bool "Generate name indices" default n + select TIME_EXTENDED ---help--- config THTTPD_USE_URLPATTERN diff --git a/netutils/thttpd/thttpd_strings.c b/netutils/thttpd/thttpd_strings.c index 5795e3754..c5835852a 100644 --- a/netutils/thttpd/thttpd_strings.c +++ b/netutils/thttpd/thttpd_strings.c @@ -154,7 +154,7 @@ void httpd_strdecode(char *to, char *from) /* Copies and encodes a string. */ #ifdef CONFIG_THTTPD_GENERATE_INDICES -static void httpd_strencode(char *to, int tosize, char *from) +void httpd_strencode(char *to, int tosize, char *from) { int tolen; diff --git a/netutils/thttpd/thttpd_strings.h b/netutils/thttpd/thttpd_strings.h index dc05f6295..3380b557d 100644 --- a/netutils/thttpd/thttpd_strings.h +++ b/netutils/thttpd/thttpd_strings.h @@ -2,7 +2,7 @@ * netutils/thttpd/thttpd_strings.h * HTTP strings * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Derived from the file of the same name in the original THTTPD package: @@ -111,12 +111,12 @@ extern const char html_endhdr2[]; /* Copies and decodes a string. It's ok for from and to to be the same string. */ -extern void httpd_strdecode(char *to, char *from); +void httpd_strdecode(char *to, char *from); /* Copies and encodes a string. */ #ifdef CONFIG_THTTPD_GENERATE_INDICES -extern void httpd_strencode(char *to, int tosize, char *from); +void httpd_strencode(char *to, int tosize, char *from); #endif #endif /* CONFIG_THTTPD */