diff options
Diffstat (limited to 'src/examples/benchmark.c')
-rw-r--r-- | src/examples/benchmark.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/examples/benchmark.c b/src/examples/benchmark.c index 185e3824..1abdad24 100644 --- a/src/examples/benchmark.c +++ b/src/examples/benchmark.c | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libmicrohttpd | 2 | This file is part of libmicrohttpd |
3 | Copyright (C) 2007, 2013 Christian Grothoff (and other contributing authors) | 3 | Copyright (C) 2007, 2013 Christian Grothoff (and other contributing authors) |
4 | Copyright (C) 2014-2022 Evgeny Grin (Karlson2k) | ||
4 | 5 | ||
5 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public | 7 | modify it under the terms of the GNU Lesser General Public |
@@ -20,6 +21,7 @@ | |||
20 | * @file benchmark.c | 21 | * @file benchmark.c |
21 | * @brief minimal code to benchmark MHD GET performance | 22 | * @brief minimal code to benchmark MHD GET performance |
22 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | * @author Karlson2k (Evgeny Grin) | ||
23 | */ | 25 | */ |
24 | 26 | ||
25 | #include "platform.h" | 27 | #include "platform.h" |
@@ -145,9 +147,8 @@ main (int argc, char *const *argv) | |||
145 | printf ("%s PORT\n", argv[0]); | 147 | printf ("%s PORT\n", argv[0]); |
146 | return 1; | 148 | return 1; |
147 | } | 149 | } |
148 | response = MHD_create_response_from_buffer (strlen (PAGE), | 150 | response = MHD_create_response_from_buffer_static (strlen (PAGE), |
149 | (void *) PAGE, | 151 | (const void *) PAGE); |
150 | MHD_RESPMEM_PERSISTENT); | ||
151 | #if 0 | 152 | #if 0 |
152 | (void) MHD_add_response_header (response, | 153 | (void) MHD_add_response_header (response, |
153 | MHD_HTTP_HEADER_CONNECTION, | 154 | MHD_HTTP_HEADER_CONNECTION, |