libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 30477aab575651b6161cd7267e5722bf1cad4d03
parent 0db81a9248b12abc74f153ebd642441d0f9c3e58
Author: silvioprog <silvioprog@gmail.com>
Date:   Tue,  9 Oct 2018 01:44:50 -0300

Style fixes.

Diffstat:
Msrc/examples/benchmark_https.c | 4++--
Msrc/examples/demo_https.c | 4++--
Msrc/examples/minimal_example.c | 10+++++-----
Msrc/examples/suspend_resume_epoll.c | 2+-
Msrc/examples/upgrade_example.c | 4++--
5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/examples/benchmark_https.c b/src/examples/benchmark_https.c @@ -204,8 +204,8 @@ main (int argc, char *const *argv) MHD_OPTION_URI_LOG_CALLBACK, &uri_logger_cb, NULL, MHD_OPTION_NOTIFY_COMPLETED, &completed_callback, NULL, MHD_OPTION_CONNECTION_LIMIT, (unsigned int) 1000, - MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, - MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, + MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, + MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, MHD_OPTION_END); if (d == NULL) return 1; diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c @@ -970,8 +970,8 @@ main (int argc, char *const *argv) MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) (120 /* seconds */), MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) NUMBER_OF_THREADS, MHD_OPTION_NOTIFY_COMPLETED, &response_completed_callback, NULL, - MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, - MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, + MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, + MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, MHD_OPTION_END); if (NULL == d) return 1; diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c @@ -74,13 +74,13 @@ main (int argc, char *const *argv) d = MHD_start_daemon (/* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, /* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ - /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ - /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ + /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ + /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, - MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, - MHD_OPTION_STRICT_FOR_CLIENT, (int) 1, - MHD_OPTION_END); + MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, + MHD_OPTION_STRICT_FOR_CLIENT, (int) 1, + MHD_OPTION_END); if (d == NULL) return 1; (void) getc (stdin); diff --git a/src/examples/suspend_resume_epoll.c b/src/examples/suspend_resume_epoll.c @@ -148,7 +148,7 @@ main (int argc, atoi (argv[1]), NULL, NULL, &ahc_echo, NULL, MHD_OPTION_NOTIFY_COMPLETED, &connection_done, NULL, - MHD_OPTION_END); + MHD_OPTION_END); if (d == NULL) return 1; diff --git a/src/examples/upgrade_example.c b/src/examples/upgrade_example.c @@ -296,8 +296,8 @@ main (int argc, atoi (argv[1]), NULL, NULL, &ahc_echo, NULL, - MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, - MHD_OPTION_END); + MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, + MHD_OPTION_END); if (d == NULL) return 1; (void) getc (stdin);