aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/authorization_example.c2
-rw-r--r--src/examples/chunked_example.c2
-rw-r--r--src/examples/demo.c4
-rw-r--r--src/examples/demo_https.c4
-rw-r--r--src/examples/https_fileserver_example.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/authorization_example.c b/src/examples/authorization_example.c
index 644b03ef..f9500325 100644
--- a/src/examples/authorization_example.c
+++ b/src/examples/authorization_example.c
@@ -120,7 +120,7 @@ main (int argc, char *const *argv)
120 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 120 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
121 if (d == NULL) 121 if (d == NULL)
122 return 1; 122 return 1;
123 fprintf (stderr, "HTTP server running. Press ENTER to stop the server\n"); 123 fprintf (stderr, "HTTP server running. Press ENTER to stop the server.\n");
124 (void) getc (stdin); 124 (void) getc (stdin);
125 MHD_stop_daemon (d); 125 MHD_stop_daemon (d);
126 return 0; 126 return 0;
diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c
index 19a37155..bd4eb855 100644
--- a/src/examples/chunked_example.c
+++ b/src/examples/chunked_example.c
@@ -156,7 +156,7 @@ main (int argc, char *const *argv)
156 (port > UINT16_MAX) ) 156 (port > UINT16_MAX) )
157 { 157 {
158 fprintf (stderr, 158 fprintf (stderr,
159 "Port must be a number between 1 and 65535\n"); 159 "Port must be a number between 1 and 65535.\n");
160 return 1; 160 return 1;
161 } 161 }
162 d = MHD_start_daemon (/* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ 162 d = MHD_start_daemon (/* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */
diff --git a/src/examples/demo.c b/src/examples/demo.c
index eb974d3a..1830d3b0 100644
--- a/src/examples/demo.c
+++ b/src/examples/demo.c
@@ -524,7 +524,7 @@ process_upload_data (void *cls,
524 } 524 }
525 if (NULL == filename) 525 if (NULL == filename)
526 { 526 {
527 fprintf (stderr, "No filename, aborting upload\n"); 527 fprintf (stderr, "No filename, aborting upload.\n");
528 return MHD_NO; /* no filename, error */ 528 return MHD_NO; /* no filename, error */
529 } 529 }
530 if ( (NULL == uc->category) || 530 if ( (NULL == uc->category) ||
@@ -946,7 +946,7 @@ main (int argc, char *const *argv)
946 MHD_OPTION_END); 946 MHD_OPTION_END);
947 if (NULL == d) 947 if (NULL == d)
948 return 1; 948 return 1;
949 fprintf (stderr, "HTTP server running. Press ENTER to stop the server\n"); 949 fprintf (stderr, "HTTP server running. Press ENTER to stop the server.\n");
950 (void) getc (stdin); 950 (void) getc (stdin);
951 MHD_stop_daemon (d); 951 MHD_stop_daemon (d);
952 MHD_destroy_response (file_not_found_response); 952 MHD_destroy_response (file_not_found_response);
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index 6e42f3a5..69922136 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -527,7 +527,7 @@ process_upload_data (void *cls,
527 } 527 }
528 if (NULL == filename) 528 if (NULL == filename)
529 { 529 {
530 fprintf (stderr, "No filename, aborting upload\n"); 530 fprintf (stderr, "No filename, aborting upload.\n");
531 return MHD_NO; /* no filename, error */ 531 return MHD_NO; /* no filename, error */
532 } 532 }
533 if ( (NULL == uc->category) || 533 if ( (NULL == uc->category) ||
@@ -1001,7 +1001,7 @@ main (int argc, char *const *argv)
1001 MHD_OPTION_END); 1001 MHD_OPTION_END);
1002 if (NULL == d) 1002 if (NULL == d)
1003 return 1; 1003 return 1;
1004 fprintf (stderr, "HTTP server running. Press ENTER to stop the server\n"); 1004 fprintf (stderr, "HTTP server running. Press ENTER to stop the server.\n");
1005 (void) getc (stdin); 1005 (void) getc (stdin);
1006 MHD_stop_daemon (d); 1006 MHD_stop_daemon (d);
1007 MHD_destroy_response (file_not_found_response); 1007 MHD_destroy_response (file_not_found_response);
diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c
index 5148c8b6..7f321511 100644
--- a/src/examples/https_fileserver_example.c
+++ b/src/examples/https_fileserver_example.c
@@ -219,7 +219,7 @@ main (int argc, char *const *argv)
219 MHD_OPTION_END); 219 MHD_OPTION_END);
220 if (NULL == TLS_daemon) 220 if (NULL == TLS_daemon)
221 { 221 {
222 fprintf (stderr, "Error: failed to start TLS_daemon\n"); 222 fprintf (stderr, "Error: failed to start TLS_daemon.\n");
223 return 1; 223 return 1;
224 } 224 }
225 printf ("MHD daemon listening on port %u\n", 225 printf ("MHD daemon listening on port %u\n",