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