aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-23 14:01:54 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-23 15:21:19 +0300
commit351d8a65d69cc1cace3e4f9186a296d18f2ac0cf (patch)
treea8423d762500529763a3761b6bf5b20355c098ed /src
parent33b4a2d9974b187b59b2cc1883ba6723f1e52742 (diff)
downloadlibmicrohttpd-351d8a65d69cc1cace3e4f9186a296d18f2ac0cf.tar.gz
libmicrohttpd-351d8a65d69cc1cace3e4f9186a296d18f2ac0cf.zip
Fixed old-style functions definitions
Diffstat (limited to 'src')
-rw-r--r--src/examples/demo.c4
-rw-r--r--src/examples/demo_https.c2
-rw-r--r--src/examples/post_example.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c
index 5b3e75d1..1c24a57e 100644
--- a/src/examples/demo.c
+++ b/src/examples/demo.c
@@ -317,7 +317,7 @@ list_directory (struct ResponseDataContext *rdc,
317 * Re-scan our local directory and re-build the index. 317 * Re-scan our local directory and re-build the index.
318 */ 318 */
319static void 319static void
320update_directory () 320update_directory (void)
321{ 321{
322 static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */ 322 static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */
323 struct MHD_Response *response; 323 struct MHD_Response *response;
@@ -858,7 +858,7 @@ catcher (int sig)
858 * setup handlers to ignore SIGPIPE. 858 * setup handlers to ignore SIGPIPE.
859 */ 859 */
860static void 860static void
861ignore_sigpipe () 861ignore_sigpipe (void)
862{ 862{
863 struct sigaction oldsig; 863 struct sigaction oldsig;
864 struct sigaction sig; 864 struct sigaction sig;
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index cfd586ca..1a09d2c2 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -319,7 +319,7 @@ list_directory (struct ResponseDataContext *rdc,
319 * Re-scan our local directory and re-build the index. 319 * Re-scan our local directory and re-build the index.
320 */ 320 */
321static void 321static void
322update_directory () 322update_directory (void)
323{ 323{
324 static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */ 324 static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */
325 struct MHD_Response *response; 325 struct MHD_Response *response;
diff --git a/src/examples/post_example.c b/src/examples/post_example.c
index 5df56afb..1134a331 100644
--- a/src/examples/post_example.c
+++ b/src/examples/post_example.c
@@ -690,7 +690,7 @@ request_completed_callback (void *cls,
690 * too long. 690 * too long.
691 */ 691 */
692static void 692static void
693expire_sessions () 693expire_sessions (void)
694{ 694{
695 struct Session *pos; 695 struct Session *pos;
696 struct Session *prev; 696 struct Session *prev;