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 */