diff options
Diffstat (limited to 'src/microhttpd/test_postprocessor.c')
-rw-r--r-- | src/microhttpd/test_postprocessor.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c index 44e79c7e..c4744ec3 100644 --- a/src/microhttpd/test_postprocessor.c +++ b/src/microhttpd/test_postprocessor.c | |||
@@ -222,13 +222,13 @@ test_urlencoding_case (unsigned int want_start, | |||
222 | for (step = 1; size >= step; ++step) | 222 | for (step = 1; size >= step; ++step) |
223 | { | 223 | { |
224 | struct MHD_Connection connection; | 224 | struct MHD_Connection connection; |
225 | struct MHD_HTTP_Header header; | 225 | struct MHD_HTTP_Req_Header header; |
226 | struct MHD_PostProcessor *pp; | 226 | struct MHD_PostProcessor *pp; |
227 | unsigned int want_off = want_start; | 227 | unsigned int want_off = want_start; |
228 | size_t i; | 228 | size_t i; |
229 | 229 | ||
230 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 230 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
231 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 231 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
232 | connection.headers_received = &header; | 232 | connection.headers_received = &header; |
233 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; | 233 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; |
234 | header.value = MHD_HTTP_POST_ENCODING_FORM_URLENCODED; | 234 | header.value = MHD_HTTP_POST_ENCODING_FORM_URLENCODED; |
@@ -361,7 +361,7 @@ static int | |||
361 | test_multipart_garbage (void) | 361 | test_multipart_garbage (void) |
362 | { | 362 | { |
363 | struct MHD_Connection connection; | 363 | struct MHD_Connection connection; |
364 | struct MHD_HTTP_Header header; | 364 | struct MHD_HTTP_Req_Header header; |
365 | struct MHD_PostProcessor *pp; | 365 | struct MHD_PostProcessor *pp; |
366 | unsigned int want_off; | 366 | unsigned int want_off; |
367 | size_t size = MHD_STATICSTR_LEN_ (FORM_DATA); | 367 | size_t size = MHD_STATICSTR_LEN_ (FORM_DATA); |
@@ -378,7 +378,7 @@ test_multipart_garbage (void) | |||
378 | { | 378 | { |
379 | want_off = FORM_START; | 379 | want_off = FORM_START; |
380 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 380 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
381 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 381 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
382 | connection.headers_received = &header; | 382 | connection.headers_received = &header; |
383 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; | 383 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; |
384 | header.value = | 384 | header.value = |
@@ -429,7 +429,7 @@ static int | |||
429 | test_multipart_splits (void) | 429 | test_multipart_splits (void) |
430 | { | 430 | { |
431 | struct MHD_Connection connection; | 431 | struct MHD_Connection connection; |
432 | struct MHD_HTTP_Header header; | 432 | struct MHD_HTTP_Req_Header header; |
433 | struct MHD_PostProcessor *pp; | 433 | struct MHD_PostProcessor *pp; |
434 | unsigned int want_off; | 434 | unsigned int want_off; |
435 | size_t size; | 435 | size_t size; |
@@ -440,7 +440,7 @@ test_multipart_splits (void) | |||
440 | { | 440 | { |
441 | want_off = FORM_START; | 441 | want_off = FORM_START; |
442 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 442 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
443 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 443 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
444 | connection.headers_received = &header; | 444 | connection.headers_received = &header; |
445 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; | 445 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; |
446 | header.value = | 446 | header.value = |
@@ -491,7 +491,7 @@ static int | |||
491 | test_multipart (void) | 491 | test_multipart (void) |
492 | { | 492 | { |
493 | struct MHD_Connection connection; | 493 | struct MHD_Connection connection; |
494 | struct MHD_HTTP_Header header; | 494 | struct MHD_HTTP_Req_Header header; |
495 | struct MHD_PostProcessor *pp; | 495 | struct MHD_PostProcessor *pp; |
496 | unsigned int want_off = FORM_START; | 496 | unsigned int want_off = FORM_START; |
497 | size_t i; | 497 | size_t i; |
@@ -499,7 +499,7 @@ test_multipart (void) | |||
499 | size_t size; | 499 | size_t size; |
500 | 500 | ||
501 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 501 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
502 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 502 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
503 | connection.headers_received = &header; | 503 | connection.headers_received = &header; |
504 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; | 504 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; |
505 | header.value = | 505 | header.value = |
@@ -548,7 +548,7 @@ static int | |||
548 | test_nested_multipart (void) | 548 | test_nested_multipart (void) |
549 | { | 549 | { |
550 | struct MHD_Connection connection; | 550 | struct MHD_Connection connection; |
551 | struct MHD_HTTP_Header header; | 551 | struct MHD_HTTP_Res_Header header; |
552 | struct MHD_PostProcessor *pp; | 552 | struct MHD_PostProcessor *pp; |
553 | unsigned int want_off = FORM_NESTED_START; | 553 | unsigned int want_off = FORM_NESTED_START; |
554 | size_t i; | 554 | size_t i; |
@@ -556,7 +556,7 @@ test_nested_multipart (void) | |||
556 | size_t size; | 556 | size_t size; |
557 | 557 | ||
558 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 558 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
559 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 559 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
560 | connection.headers_received = &header; | 560 | connection.headers_received = &header; |
561 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; | 561 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; |
562 | header.value = | 562 | header.value = |
@@ -623,7 +623,7 @@ static int | |||
623 | test_overflow () | 623 | test_overflow () |
624 | { | 624 | { |
625 | struct MHD_Connection connection; | 625 | struct MHD_Connection connection; |
626 | struct MHD_HTTP_Header header; | 626 | struct MHD_HTTP_Req_Header header; |
627 | struct MHD_PostProcessor *pp; | 627 | struct MHD_PostProcessor *pp; |
628 | size_t i; | 628 | size_t i; |
629 | size_t j; | 629 | size_t j; |
@@ -631,7 +631,7 @@ test_overflow () | |||
631 | char *buf; | 631 | char *buf; |
632 | 632 | ||
633 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 633 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
634 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 634 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
635 | connection.headers_received = &header; | 635 | connection.headers_received = &header; |
636 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; | 636 | header.header = MHD_HTTP_HEADER_CONTENT_TYPE; |
637 | header.value = MHD_HTTP_POST_ENCODING_FORM_URLENCODED; | 637 | header.value = MHD_HTTP_POST_ENCODING_FORM_URLENCODED; |
@@ -686,10 +686,10 @@ test_empty_key (void) | |||
686 | { | 686 | { |
687 | size_t i; | 687 | size_t i; |
688 | struct MHD_Connection connection; | 688 | struct MHD_Connection connection; |
689 | struct MHD_HTTP_Header header; | 689 | struct MHD_HTTP_Req_Header header; |
690 | struct MHD_PostProcessor *pp; | 690 | struct MHD_PostProcessor *pp; |
691 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 691 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
692 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 692 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
693 | 693 | ||
694 | connection.headers_received = &header; | 694 | connection.headers_received = &header; |
695 | connection.headers_received_tail = &header; | 695 | connection.headers_received_tail = &header; |
@@ -738,12 +738,12 @@ test_double_value (void) | |||
738 | { | 738 | { |
739 | size_t i; | 739 | size_t i; |
740 | struct MHD_Connection connection; | 740 | struct MHD_Connection connection; |
741 | struct MHD_HTTP_Header header; | 741 | struct MHD_HTTP_Req_Header header; |
742 | struct MHD_PostProcessor *pp; | 742 | struct MHD_PostProcessor *pp; |
743 | unsigned int results_off = URL_START; | 743 | unsigned int results_off = URL_START; |
744 | unsigned int results_final = results_off + 1; /* First value is correct */ | 744 | unsigned int results_final = results_off + 1; /* First value is correct */ |
745 | memset (&connection, 0, sizeof (struct MHD_Connection)); | 745 | memset (&connection, 0, sizeof (struct MHD_Connection)); |
746 | memset (&header, 0, sizeof (struct MHD_HTTP_Header)); | 746 | memset (&header, 0, sizeof (struct MHD_HTTP_Res_Header)); |
747 | 747 | ||
748 | connection.headers_received = &header; | 748 | connection.headers_received = &header; |
749 | connection.headers_received_tail = &header; | 749 | connection.headers_received_tail = &header; |