aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-29 17:15:18 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-29 21:30:34 +0300
commit06476807a2f5b977cac710c5665e29a7f9bb15c8 (patch)
tree9d7eb3c62f46c990d38ca7cc1337c9e490f92344
parentc6ba7ba254a4f3419c21dfb7d2164ce43d6dff0d (diff)
downloadlibmicrohttpd-06476807a2f5b977cac710c5665e29a7f9bb15c8.tar.gz
libmicrohttpd-06476807a2f5b977cac710c5665e29a7f9bb15c8.zip
test_client_put_stop: cosmetics
-rw-r--r--src/microhttpd/test_client_put_stop.c16
1 files 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,
1322 & MHD_USE_INTERNAL_POLLING_THREAD)); 1322 & MHD_USE_INTERNAL_POLLING_THREAD));
1323 1323
1324 if (0 == p->queryPort) 1324 if (0 == p->queryPort)
1325 abort (); 1325 externalErrorExit ();
1326 1326
1327 c = _MHD_dumbClient_create (p->queryPort, p->method, p->queryPath, 1327 c = _MHD_dumbClient_create (p->queryPort, p->method, p->queryPath,
1328 p->headers, p->req_body, p->req_body_size, 1328 p->headers, p->req_body, p->req_body_size,
@@ -1566,7 +1566,7 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
1566 const union MHD_DaemonInfo *dinfo; 1566 const union MHD_DaemonInfo *dinfo;
1567 1567
1568 if ((NULL == ahc_param) || (NULL == uri_cb_param) || (NULL == term_result)) 1568 if ((NULL == ahc_param) || (NULL == uri_cb_param) || (NULL == term_result))
1569 abort (); 1569 externalErrorExit ();
1570 1570
1571 *ahc_param = (struct ahc_cls_type *) malloc (sizeof(struct ahc_cls_type)); 1571 *ahc_param = (struct ahc_cls_type *) malloc (sizeof(struct ahc_cls_type));
1572 if (NULL == *ahc_param) 1572 if (NULL == *ahc_param)
@@ -1632,19 +1632,13 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
1632 MHD_OPTION_END); 1632 MHD_OPTION_END);
1633 1633
1634 if (NULL == d) 1634 if (NULL == d)
1635 { 1635 mhdErrorExitDesc ("Failed to start MHD daemon");
1636 fprintf (stderr, "Failed to start MHD daemon, errno=%d.\n", errno);
1637 abort ();
1638 }
1639 1636
1640 if (0 == *pport) 1637 if (0 == *pport)
1641 { 1638 {
1642 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 1639 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
1643 if ((NULL == dinfo) || (0 == dinfo->port) ) 1640 if ((NULL == dinfo) || (0 == dinfo->port))
1644 { 1641 mhdErrorExitDesc ("MHD_get_daemon_info() failed");
1645 fprintf (stderr, "MHD_get_daemon_info() failed.\n");
1646 abort ();
1647 }
1648 *pport = (int) dinfo->port; 1642 *pport = (int) dinfo->port;
1649 if (0 == global_port) 1643 if (0 == global_port)
1650 global_port = *pport; /* Reuse the same port for all tests */ 1644 global_port = *pport; /* Reuse the same port for all tests */