aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_client_put_stop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/test_client_put_stop.c')
-rw-r--r--src/microhttpd/test_client_put_stop.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c
index 9ee7dcf6..c26ff78a 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -802,6 +802,7 @@ _MHD_dumbClient_send_req (struct _MHD_dumbClient *clnt)
802 802
803 803
804/* internal */ 804/* internal */
805_MHD_NORETURN /* Declared as 'noreturn' until it is implemented */
805static void 806static void
806_MHD_dumbClient_recv_reply (struct _MHD_dumbClient *clnt) 807_MHD_dumbClient_recv_reply (struct _MHD_dumbClient *clnt)
807{ 808{
@@ -1687,7 +1688,8 @@ printTestResults (FILE *stream,
1687 fprintf (stream, " Final notification callback has been called %u time%s " 1688 fprintf (stream, " Final notification callback has been called %u time%s "
1688 "with %s code.", term_result->num_called, 1689 "with %s code.", term_result->num_called,
1689 (1 == term_result->num_called) ? "" : "s", 1690 (1 == term_result->num_called) ? "" : "s",
1690 term_reason_str (term_result->term_reason)); 1691 term_reason_str ((enum MHD_RequestTerminationCode)
1692 term_result->term_reason));
1691 fprintf (stream, "\n"); 1693 fprintf (stream, "\n");
1692 fflush (stream); 1694 fflush (stream);
1693} 1695}
@@ -1848,7 +1850,9 @@ performTestQueries (struct MHD_Daemon *d, uint16_t d_port,
1848 if (! found_right_reason) 1850 if (! found_right_reason)
1849 { 1851 {
1850 fprintf (stderr, "FAILED: termination callback was not called with " 1852 fprintf (stderr, "FAILED: termination callback was not called with "
1851 "expected (%s) reason.\n", term_reason_str (expected_reason)); 1853 "expected (%s) reason.\n",
1854 term_reason_str ((enum MHD_RequestTerminationCode)
1855 expected_reason));
1852 fflush (stderr); 1856 fflush (stderr);
1853 ret |= 1 << 1; 1857 ret |= 1 << 1;
1854 } 1858 }
@@ -1971,7 +1975,7 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
1971 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 1975 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
1972 if ((NULL == dinfo) || (0 == dinfo->port)) 1976 if ((NULL == dinfo) || (0 == dinfo->port))
1973 mhdErrorExitDesc ("MHD_get_daemon_info() failed"); 1977 mhdErrorExitDesc ("MHD_get_daemon_info() failed");
1974 *pport = (int) dinfo->port; 1978 *pport = dinfo->port;
1975 if (0 == global_port) 1979 if (0 == global_port)
1976 global_port = *pport; /* Reuse the same port for all tests */ 1980 global_port = *pport; /* Reuse the same port for all tests */
1977 } 1981 }