aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-19 15:52:05 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-19 16:23:22 +0300
commit0b22e20357dad582e4b7a7a45b6e68102fb27b43 (patch)
tree4934c14d5a465e7d53cc383e707567f283a7b880 /src/microhttpd/daemon.c
parent69c600bd8510c3ec94f1f4ca8557e42832d6c142 (diff)
downloadlibmicrohttpd-0b22e20357dad582e4b7a7a45b6e68102fb27b43.tar.gz
libmicrohttpd-0b22e20357dad582e4b7a7a45b6e68102fb27b43.zip
log messaged-related minor fixes
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b91278a9..8d721203 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -562,7 +562,7 @@ MHD_init_daemon_certificate (struct MHD_Daemon *daemon)
562 { 562 {
563#ifdef HAVE_MESSAGES 563#ifdef HAVE_MESSAGES
564 MHD_DLOG (daemon, 564 MHD_DLOG (daemon,
565 "Too long trust certificate.\n"); 565 _ ("Too long trust certificate.\n"));
566#endif 566#endif
567 return -1; 567 return -1;
568 } 568 }
@@ -574,7 +574,7 @@ MHD_init_daemon_certificate (struct MHD_Daemon *daemon)
574 { 574 {
575#ifdef HAVE_MESSAGES 575#ifdef HAVE_MESSAGES
576 MHD_DLOG (daemon, 576 MHD_DLOG (daemon,
577 "Bad trust certificate format.\n"); 577 _ ("Bad trust certificate format.\n"));
578#endif 578#endif
579 return -1; 579 return -1;
580 } 580 }
@@ -599,7 +599,7 @@ MHD_init_daemon_certificate (struct MHD_Daemon *daemon)
599 { 599 {
600#ifdef HAVE_MESSAGES 600#ifdef HAVE_MESSAGES
601 MHD_DLOG (daemon, 601 MHD_DLOG (daemon,
602 "Too long key or certificate.\n"); 602 _ ("Too long key or certificate.\n"));
603#endif 603#endif
604 return -1; 604 return -1;
605 } 605 }
@@ -634,7 +634,7 @@ MHD_init_daemon_certificate (struct MHD_Daemon *daemon)
634#ifdef HAVE_MESSAGES 634#ifdef HAVE_MESSAGES
635 if (0 != ret) 635 if (0 != ret)
636 MHD_DLOG (daemon, 636 MHD_DLOG (daemon,
637 "GnuTLS failed to setup x509 certificate/key: %s\n", 637 _ ("GnuTLS failed to setup x509 certificate/key: %s\n"),
638 gnutls_strerror (ret)); 638 gnutls_strerror (ret));
639#endif 639#endif
640 return ret; 640 return ret;
@@ -649,7 +649,7 @@ MHD_init_daemon_certificate (struct MHD_Daemon *daemon)
649#endif 649#endif
650#ifdef HAVE_MESSAGES 650#ifdef HAVE_MESSAGES
651 MHD_DLOG (daemon, 651 MHD_DLOG (daemon,
652 "You need to specify a certificate and key location.\n"); 652 _ ("You need to specify a certificate and key location.\n"));
653#endif 653#endif
654 return -1; 654 return -1;
655} 655}
@@ -2447,7 +2447,7 @@ new_connection_prepare_ (struct MHD_Daemon *daemon,
2447 eno = errno; 2447 eno = errno;
2448#ifdef HAVE_MESSAGES 2448#ifdef HAVE_MESSAGES
2449 MHD_DLOG (daemon, 2449 MHD_DLOG (daemon,
2450 "Error allocating memory: %s\n", 2450 _ ("Error allocating memory: %s\n"),
2451 MHD_strerror_ (errno)); 2451 MHD_strerror_ (errno));
2452#endif 2452#endif
2453 MHD_socket_close_chk_ (client_socket); 2453 MHD_socket_close_chk_ (client_socket);
@@ -2754,7 +2754,7 @@ new_connection_process_ (struct MHD_Daemon *daemon,
2754 eno = errno; 2754 eno = errno;
2755#ifdef HAVE_MESSAGES 2755#ifdef HAVE_MESSAGES
2756 MHD_DLOG (daemon, 2756 MHD_DLOG (daemon,
2757 "Failed to create a thread: %s\n", 2757 _ ("Failed to create a thread: %s\n"),
2758 MHD_strerror_ (eno)); 2758 MHD_strerror_ (eno));
2759#endif 2759#endif
2760 goto cleanup; 2760 goto cleanup;
@@ -5355,7 +5355,8 @@ MHD_quiesce_daemon (struct MHD_Daemon *daemon)
5355 { 5355 {
5356#ifdef HAVE_MESSAGES 5356#ifdef HAVE_MESSAGES
5357 MHD_DLOG (daemon, 5357 MHD_DLOG (daemon,
5358 "Using MHD_quiesce_daemon in this mode requires MHD_USE_ITC.\n"); 5358 _ (
5359 "Using MHD_quiesce_daemon in this mode requires MHD_USE_ITC.\n"));
5359#endif 5360#endif
5360 return MHD_INVALID_SOCKET; 5361 return MHD_INVALID_SOCKET;
5361 } 5362 }