Hello masters,

This attached patch adds the authors/copyright to the `timeout.c` example.

Thank you!

-- 
Silvio Clécio
From 59f1f5d34568aea1d7078a83325424bb48df7ea8 Mon Sep 17 00:00:00 2001
From: silvioprog <[email protected]>
Date: Sun, 26 Feb 2017 16:49:59 -0300
Subject: [PATCH] add authors and copyright to the example `timeout.c`

---
 src/examples/timeout.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/src/examples/timeout.c b/src/examples/timeout.c
index ef18c0e..6a9a1e3 100644
--- a/src/examples/timeout.c
+++ b/src/examples/timeout.c
@@ -1,3 +1,28 @@
+/*
+     This file is part of libmicrohttpd
+     Copyright (C) 2016, 2017 Christian Grothoff,
+     Silvio Clecio (silvioprog), Karlson2k (Evgeny Grin)
+
+     This library is free software; you can redistribute it and/or
+     modify it under the terms of the GNU Lesser General Public
+     License as published by the Free Software Foundation; either
+     version 2.1 of the License, or (at your option) any later version.
+
+     This library is distributed in the hope that it will be useful,
+     but WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     Lesser General Public License for more details.
+
+     You should have received a copy of the GNU Lesser General Public
+     License along with this library; if not, write to the Free Software
+     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+/**
+ * @file timeout.c
+ * @brief example for how to use libmicrohttpd request timeout
+ * @author Christian Grothoff, Silvio Clecio (silvioprog), Karlson2k (Evgeny Grin)
+ */
+
 #include <microhttpd.h>
 #include <stdio.h>
 #include <string.h>
@@ -42,6 +67,7 @@ main (int argc,
                              PORT,
                              NULL, NULL,
                              &answer_to_connection, NULL,
+                             /* 3 seconds */
                              MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 3,
                              MHD_OPTION_END);
   if (NULL == daemon)
-- 
2.7.4

Reply via email to