gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 04/06: test_client_put_stop: cosmetics


From: gnunet
Subject: [libmicrohttpd] 04/06: test_client_put_stop: cosmetics
Date: Wed, 01 Dec 2021 13:04:36 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 06476807a2f5b977cac710c5665e29a7f9bb15c8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Nov 29 17:15:18 2021 +0300

    test_client_put_stop: cosmetics
---
 src/microhttpd/test_client_put_stop.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/microhttpd/test_client_put_stop.c 
b/src/microhttpd/test_client_put_stop.c
index 275d407e..4a6cade0 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -1322,7 +1322,7 @@ doClientQueryInThread (struct MHD_Daemon *d,
                              & MHD_USE_INTERNAL_POLLING_THREAD));
 
   if (0 == p->queryPort)
-    abort ();
+    externalErrorExit ();
 
   c = _MHD_dumbClient_create (p->queryPort, p->method, p->queryPath,
                               p->headers, p->req_body, p->req_body_size,
@@ -1566,7 +1566,7 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
   const union MHD_DaemonInfo *dinfo;
 
   if ((NULL == ahc_param) || (NULL == uri_cb_param) || (NULL == term_result))
-    abort ();
+    externalErrorExit ();
 
   *ahc_param = (struct ahc_cls_type *) malloc (sizeof(struct ahc_cls_type));
   if (NULL == *ahc_param)
@@ -1632,19 +1632,13 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
                           MHD_OPTION_END);
 
   if (NULL == d)
-  {
-    fprintf (stderr, "Failed to start MHD daemon, errno=%d.\n", errno);
-    abort ();
-  }
+    mhdErrorExitDesc ("Failed to start MHD daemon");
 
   if (0 == *pport)
   {
     dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
-    if ((NULL == dinfo) || (0 == dinfo->port) )
-    {
-      fprintf (stderr, "MHD_get_daemon_info() failed.\n");
-      abort ();
-    }
+    if ((NULL == dinfo) || (0 == dinfo->port))
+      mhdErrorExitDesc ("MHD_get_daemon_info() failed");
     *pport = (int) dinfo->port;
     if (0 == global_port)
       global_port = *pport; /* Reuse the same port for all tests */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]