[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 09/36: test_postprocessor_md: fixed build in C89 mode
From: |
gnunet |
Subject: |
[libmicrohttpd] 09/36: test_postprocessor_md: fixed build in C89 mode |
Date: |
Thu, 01 Jun 2023 12:30:14 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit f89621ff44ded2c93228f18b9a56865eda0e3562
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue May 16 18:25:55 2023 +0300
test_postprocessor_md: fixed build in C89 mode
---
src/microhttpd/test_postprocessor_md.c | 8 +++++---
1 file 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 @@
/*
This file is part of libmicrohttpd
Copyright (C) 2020 Christian Grothoff
- Copyright (C) 2020-2022 Evgeny Grin (Karlson2k)
+ Copyright (C) 2020-2023 Evgeny Grin (Karlson2k)
libmicrohttpd is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -518,6 +518,7 @@ main (int argc, char *argv[])
if (1)
{
+ unsigned i;
const char *chunks[] = {
"t=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%2C%2Cxxxxx%2C%2Cx%2Cxxxxxxxx"
"xxxxxxxxxxxx%2C%2Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
@@ -680,7 +681,7 @@ main (int argc, char *argv[])
postprocessor->buffer_size = 131076;
postprocessor->state = PP_Init;
postprocessor->skip_rn = RN_Inactive;
- for (unsigned i = 0; i < ARRAY_LENGTH (chunks); ++i)
+ for (i = 0; i < ARRAY_LENGTH (chunks); ++i)
{
const char *chunk = chunks[i];
if (MHD_YES != MHD_post_process (postprocessor, chunk, strlen (chunk) ))
@@ -693,6 +694,7 @@ main (int argc, char *argv[])
}
if (1)
{
+ unsigned i;
const char *chunks[] = {
"XXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&XXXXXX=&XXXXXXXXXXXXXX=X"
@@ -716,7 +718,7 @@ main (int argc, char *argv[])
postprocessor->buffer_size = 131076;
postprocessor->state = PP_Init;
postprocessor->skip_rn = RN_Inactive;
- for (unsigned i = 0; i < ARRAY_LENGTH (chunks); ++i)
+ for (i = 0; i < ARRAY_LENGTH (chunks); ++i)
{
const char *chunk = chunks[i];
if (MHD_YES != MHD_post_process (postprocessor, chunk, strlen (chunk) ))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (31ce530d -> 4ddb8015), gnunet, 2023/06/01
- [libmicrohttpd] 03/36: autoinit_funcs.h: fixed compiler warning, gnunet, 2023/06/01
- [libmicrohttpd] 01/36: bootstrap script: improved portability, gnunet, 2023/06/01
- [libmicrohttpd] 04/36: tests: adopted to new libcurl API, gnunet, 2023/06/01
- [libmicrohttpd] 02/36: Added more mutes for autoconf compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 05/36: configure: fixed compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 10/36: test_client_put_stop: fixed test on Darwin, gnunet, 2023/06/01
- [libmicrohttpd] 08/36: test_quiesce: fixed possible uninitialised var, gnunet, 2023/06/01
- [libmicrohttpd] 09/36: test_postprocessor_md: fixed build in C89 mode,
gnunet <=
- [libmicrohttpd] 12/36: test_client_put_stop: avoid stress-testing the OS, gnunet, 2023/06/01
- [libmicrohttpd] 24/36: websocket_threaded_example: fixed wrong commented-out code, gnunet, 2023/06/01
- [libmicrohttpd] 22/36: test_client_put_stop: muted compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 14/36: Added specific headers inclusion and detection, gnunet, 2023/06/01
- [libmicrohttpd] 07/36: configure: renamed macro, gnunet, 2023/06/01
- [libmicrohttpd] 11/36: test_client_put_stop: fixed typo in comment, gnunet, 2023/06/01
- [libmicrohttpd] 17/36: examples/sessions.c: removed non-portable function and improved safety, gnunet, 2023/06/01
- [libmicrohttpd] 18/36: configure: fixed detection of __FUNCTION__ magic macro, gnunet, 2023/06/01
- [libmicrohttpd] 06/36: test_toolarge: fixed reported error description, gnunet, 2023/06/01
- [libmicrohttpd] 13/36: test_timeout: moved to heavy tests, gnunet, 2023/06/01