summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_statics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_statics.c')
-rw-r--r--src/backend/taler-merchant-httpd_statics.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_statics.c b/src/backend/taler-merchant-httpd_statics.c
index 6b4ff351..72f81d85 100644
--- a/src/backend/taler-merchant-httpd_statics.c
+++ b/src/backend/taler-merchant-httpd_statics.c
@@ -15,7 +15,7 @@
*/
/**
* @file taler-merchant-httpd_statics.c
- * @brief logic to load and complete HTML templates
+ * @brief logic to load and return static resource files by client language preference
* @author Christian Grothoff
*/
#include "platform.h"
@@ -144,7 +144,7 @@ TMH_return_static (const struct TMH_RequestHandler *rh,
* #GNUNET_NO to stop iteration with no error,
* #GNUNET_SYSERR to abort iteration with error!
*/
-static int
+static enum GNUNET_GenericReturnValue
load_static_file (void *cls,
const char *filename)
{
@@ -275,7 +275,7 @@ load_static_file (void *cls,
/**
* Preload static files.
*/
-int
+enum GNUNET_GenericReturnValue
TMH_statics_init ()
{
char *dn;
@@ -291,7 +291,7 @@ TMH_statics_init ()
return GNUNET_SYSERR;
}
GNUNET_asprintf (&dn,
- "%s/merchant/static/",
+ "%smerchant/static/",
path);
GNUNET_free (path);
}
@@ -300,7 +300,7 @@ TMH_statics_init ()
NULL);
if (-1 == ret)
{
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Could not load static resources from `%s': %s\n",
dn,
strerror (errno));