aboutsummaryrefslogtreecommitdiff
path: root/src/examples/demo_https.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/demo_https.c')
-rw-r--r--src/examples/demo_https.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index f9376de9..85c369b6 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -493,6 +493,10 @@ process_upload_data (void *cls,
493{ 493{
494 struct UploadContext *uc = cls; 494 struct UploadContext *uc = cls;
495 int i; 495 int i;
496 (void)kind; /* Unused. Silent compiler warning. */
497 (void)content_type; /* Unused. Silent compiler warning. */
498 (void)transfer_encoding; /* Unused. Silent compiler warning. */
499 (void)off; /* Unused. Silent compiler warning. */
496 500
497 if (0 == strcmp (key, "category")) 501 if (0 == strcmp (key, "category"))
498 return do_append (&uc->category, data, size); 502 return do_append (&uc->category, data, size);
@@ -613,6 +617,9 @@ response_completed_callback (void *cls,
613 enum MHD_RequestTerminationCode toe) 617 enum MHD_RequestTerminationCode toe)
614{ 618{
615 struct UploadContext *uc = *con_cls; 619 struct UploadContext *uc = *con_cls;
620 (void)cls; /* Unused. Silent compiler warning. */
621 (void)connection; /* Unused. Silent compiler warning. */
622 (void)toe; /* Unused. Silent compiler warning. */
616 623
617 if (NULL == uc) 624 if (NULL == uc)
618 return; /* this request wasn't an upload request */ 625 return; /* this request wasn't an upload request */
@@ -689,6 +696,8 @@ generate_page (void *cls,
689 int ret; 696 int ret;
690 int fd; 697 int fd;
691 struct stat buf; 698 struct stat buf;
699 (void)cls; /* Unused. Silent compiler warning. */
700 (void)version; /* Unused. Silent compiler warning. */
692 701
693 if (0 != strcmp (url, "/")) 702 if (0 != strcmp (url, "/"))
694 { 703 {
@@ -813,6 +822,7 @@ generate_page (void *cls,
813} 822}
814 823
815 824
825#ifndef MINGW
816/** 826/**
817 * Function called if we get a SIGPIPE. Does nothing. 827 * Function called if we get a SIGPIPE. Does nothing.
818 * 828 *
@@ -828,7 +838,6 @@ catcher (int sig)
828/** 838/**
829 * setup handlers to ignore SIGPIPE. 839 * setup handlers to ignore SIGPIPE.
830 */ 840 */
831#ifndef MINGW
832static void 841static void
833ignore_sigpipe () 842ignore_sigpipe ()
834{ 843{