aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-07 18:01:13 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-07 18:01:13 +0200
commit4195c246bb47080eb7ce8c55d25c825da96a3a6e (patch)
tree739652dddb75496282b8ea78b4cb3931b85afaa7 /src
parentb627fdaf25d1db7ae8e35963b5cae882881fc016 (diff)
downloadlibmicrohttpd-4195c246bb47080eb7ce8c55d25c825da96a3a6e.tar.gz
libmicrohttpd-4195c246bb47080eb7ce8c55d25c825da96a3a6e.zip
-more minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/test_postprocessor_large.c11
-rw-r--r--src/testcurl/test_postform.c13
2 files changed, 20 insertions, 4 deletions
diff --git a/src/microhttpd/test_postprocessor_large.c b/src/microhttpd/test_postprocessor_large.c
index 7fcc5d5a..0a821f09 100644
--- a/src/microhttpd/test_postprocessor_large.c
+++ b/src/microhttpd/test_postprocessor_large.c
@@ -89,7 +89,16 @@ test_simple_large ()
89 while (i < size) 89 while (i < size)
90 { 90 {
91 delta = 1 + MHD_random_ () % (size - i); 91 delta = 1 + MHD_random_ () % (size - i);
92 MHD_post_process (pp, &data[i], delta); 92 if (MHD_YES !=
93 MHD_post_process (pp,
94 &data[i],
95 delta))
96 {
97 fprintf (stderr,
98 "MHD_post_process() failed!\n");
99 MHD_destroy_post_processor (pp);
100 return 1;
101 }
93 i += delta; 102 i += delta;
94 } 103 }
95 MHD_destroy_post_processor (pp); 104 MHD_destroy_post_processor (pp);
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c
index 87febcbc..a2dfd41d 100644
--- a/src/testcurl/test_postform.c
+++ b/src/testcurl/test_postform.c
@@ -145,12 +145,19 @@ ahc_echo (void *cls,
145 if (pp == NULL) 145 if (pp == NULL)
146 { 146 {
147 eok = 0; 147 eok = 0;
148 pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); 148 pp = MHD_create_post_processor (connection,
149 if (pp == NULL) 149 1024,
150 &post_iterator,
151 &eok);
152 if (NULL == pp)
150 abort (); 153 abort ();
151 *req_cls = pp; 154 *req_cls = pp;
152 } 155 }
153 MHD_post_process (pp, upload_data, *upload_data_size); 156 if (MHD_YES !=
157 MHD_post_process (pp,
158 upload_data,
159 *upload_data_size))
160 abort ();
154 if ((eok == 3) && (0 == *upload_data_size)) 161 if ((eok == 3) && (0 == *upload_data_size))
155 { 162 {
156 response = MHD_create_response_from_buffer (strlen (url), 163 response = MHD_create_response_from_buffer (strlen (url),