diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-05-16 18:25:55 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-01 09:31:18 +0300 |
commit | f89621ff44ded2c93228f18b9a56865eda0e3562 (patch) | |
tree | b15b8f4b3b8e565922ff88bc504fbef2bdad9528 /src/microhttpd | |
parent | 35635c6a780f5159b1a11c08988c33ac49927099 (diff) | |
download | libmicrohttpd-f89621ff44ded2c93228f18b9a56865eda0e3562.tar.gz libmicrohttpd-f89621ff44ded2c93228f18b9a56865eda0e3562.zip |
test_postprocessor_md: fixed build in C89 mode
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/test_postprocessor_md.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/microhttpd/test_postprocessor_md.c b/src/microhttpd/test_postprocessor_md.c index afa00599..55936780 100644 --- a/src/microhttpd/test_postprocessor_md.c +++ b/src/microhttpd/test_postprocessor_md.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libmicrohttpd | 2 | This file is part of libmicrohttpd |
3 | Copyright (C) 2020 Christian Grothoff | 3 | Copyright (C) 2020 Christian Grothoff |
4 | Copyright (C) 2020-2022 Evgeny Grin (Karlson2k) | 4 | Copyright (C) 2020-2023 Evgeny Grin (Karlson2k) |
5 | 5 | ||
6 | libmicrohttpd is free software; you can redistribute it and/or modify | 6 | libmicrohttpd is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published | 7 | it under the terms of the GNU General Public License as published |
@@ -518,6 +518,7 @@ main (int argc, char *argv[]) | |||
518 | 518 | ||
519 | if (1) | 519 | if (1) |
520 | { | 520 | { |
521 | unsigned i; | ||
521 | const char *chunks[] = { | 522 | const char *chunks[] = { |
522 | "t=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%2C%2Cxxxxx%2C%2Cx%2Cxxxxxxxx" | 523 | "t=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%2C%2Cxxxxx%2C%2Cx%2Cxxxxxxxx" |
523 | "xxxxxxxxxxxx%2C%2Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | 524 | "xxxxxxxxxxxx%2C%2Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
@@ -680,7 +681,7 @@ main (int argc, char *argv[]) | |||
680 | postprocessor->buffer_size = 131076; | 681 | postprocessor->buffer_size = 131076; |
681 | postprocessor->state = PP_Init; | 682 | postprocessor->state = PP_Init; |
682 | postprocessor->skip_rn = RN_Inactive; | 683 | postprocessor->skip_rn = RN_Inactive; |
683 | for (unsigned i = 0; i < ARRAY_LENGTH (chunks); ++i) | 684 | for (i = 0; i < ARRAY_LENGTH (chunks); ++i) |
684 | { | 685 | { |
685 | const char *chunk = chunks[i]; | 686 | const char *chunk = chunks[i]; |
686 | if (MHD_YES != MHD_post_process (postprocessor, chunk, strlen (chunk) )) | 687 | if (MHD_YES != MHD_post_process (postprocessor, chunk, strlen (chunk) )) |
@@ -693,6 +694,7 @@ main (int argc, char *argv[]) | |||
693 | } | 694 | } |
694 | if (1) | 695 | if (1) |
695 | { | 696 | { |
697 | unsigned i; | ||
696 | const char *chunks[] = { | 698 | const char *chunks[] = { |
697 | "XXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | 699 | "XXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
698 | "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&XXXXXX=&XXXXXXXXXXXXXX=X" | 700 | "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&XXXXXX=&XXXXXXXXXXXXXX=X" |
@@ -716,7 +718,7 @@ main (int argc, char *argv[]) | |||
716 | postprocessor->buffer_size = 131076; | 718 | postprocessor->buffer_size = 131076; |
717 | postprocessor->state = PP_Init; | 719 | postprocessor->state = PP_Init; |
718 | postprocessor->skip_rn = RN_Inactive; | 720 | postprocessor->skip_rn = RN_Inactive; |
719 | for (unsigned i = 0; i < ARRAY_LENGTH (chunks); ++i) | 721 | for (i = 0; i < ARRAY_LENGTH (chunks); ++i) |
720 | { | 722 | { |
721 | const char *chunk = chunks[i]; | 723 | const char *chunk = chunks[i]; |
722 | if (MHD_YES != MHD_post_process (postprocessor, chunk, strlen (chunk) )) | 724 | if (MHD_YES != MHD_post_process (postprocessor, chunk, strlen (chunk) )) |