aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-06 22:29:11 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-06 22:29:11 +0000
commit74d383c58105026f05856f38d7f4555bcdfb701c (patch)
treee68de0e282a15b0c8ac039bdaeef519f6309bbe6 /src/microhttpd/internal.c
parente3994e2a7f7a3aa2766f5494fbd6d8b05e475772 (diff)
downloadlibmicrohttpd-74d383c58105026f05856f38d7f4555bcdfb701c.tar.gz
libmicrohttpd-74d383c58105026f05856f38d7f4555bcdfb701c.zip
address #4614: mark translatable strings with _-macro
Diffstat (limited to 'src/microhttpd/internal.c')
-rw-r--r--src/microhttpd/internal.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/microhttpd/internal.c b/src/microhttpd/internal.c
index b4ecd069..aa5a3596 100644
--- a/src/microhttpd/internal.c
+++ b/src/microhttpd/internal.c
@@ -86,20 +86,25 @@ MHD_state_to_string (enum MHD_CONNECTION_STATE state)
86#endif 86#endif
87#endif 87#endif
88 88
89
89#ifdef HAVE_MESSAGES 90#ifdef HAVE_MESSAGES
90/** 91/**
91 * fprintf-like helper function for logging debug 92 * fprintf-like helper function for logging debug
92 * messages. 93 * messages.
93 */ 94 */
94void 95void
95MHD_DLOG (const struct MHD_Daemon *daemon, const char *format, ...) 96MHD_DLOG (const struct MHD_Daemon *daemon,
97 const char *format,
98 ...)
96{ 99{
97 va_list va; 100 va_list va;
98 101
99 if (0 == (daemon->options & MHD_USE_DEBUG)) 102 if (0 == (daemon->options & MHD_USE_DEBUG))
100 return; 103 return;
101 va_start (va, format); 104 va_start (va, format);
102 daemon->custom_error_log (daemon->custom_error_log_cls, format, va); 105 daemon->custom_error_log (daemon->custom_error_log_cls,
106 format,
107 va);
103 va_end (va); 108 va_end (va);
104} 109}
105#endif 110#endif
@@ -141,7 +146,9 @@ MHD_http_unescape (char *val)
141 switch (*rpos) 146 switch (*rpos)
142 { 147 {
143 case '%': 148 case '%':
144 if (2 == MHD_strx_to_uint32_n_ (rpos + 1, 2, &num)) 149 if (2 == MHD_strx_to_uint32_n_ (rpos + 1,
150 2,
151 &num))
145 { 152 {
146 *wpos = (char)((unsigned char) num); 153 *wpos = (char)((unsigned char) num);
147 wpos++; 154 wpos++;