aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-10-31 11:16:26 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-10-31 11:19:24 +0300
commit424abcd21daf7000fa826a03de6188ea608a50ec (patch)
treeb290e8f29f227fcef0259d14a6306979dd2f2f3e /src/examples
parente7f77103503632ddd6ee6e87021de83271e9ebbf (diff)
downloadlibmicrohttpd-424abcd21daf7000fa826a03de6188ea608a50ec.tar.gz
libmicrohttpd-424abcd21daf7000fa826a03de6188ea608a50ec.zip
Additional compiler warnings fixes.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/demo.c1
-rw-r--r--src/examples/demo_https.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c
index 0b177357..6c9ad049 100644
--- a/src/examples/demo.c
+++ b/src/examples/demo.c
@@ -832,6 +832,7 @@ generate_page (void *cls,
832static void 832static void
833catcher (int sig) 833catcher (int sig)
834{ 834{
835 (void)sig; /* Unused. Silent compiler warning. */
835 /* do nothing */ 836 /* do nothing */
836} 837}
837 838
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index 85c369b6..806464a2 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -831,6 +831,7 @@ generate_page (void *cls,
831static void 831static void
832catcher (int sig) 832catcher (int sig)
833{ 833{
834 (void)sig; /* Unused. Silent compiler warning. */
834 /* do nothing */ 835 /* do nothing */
835} 836}
836 837
@@ -839,7 +840,7 @@ catcher (int sig)
839 * setup handlers to ignore SIGPIPE. 840 * setup handlers to ignore SIGPIPE.
840 */ 841 */
841static void 842static void
842ignore_sigpipe () 843ignore_sigpipe (void)
843{ 844{
844 struct sigaction oldsig; 845 struct sigaction oldsig;
845 struct sigaction sig; 846 struct sigaction sig;