Просмотр исходного кода

Fixed old-style functions definitions

Evgeny Grin (Karlson2k) 3 лет назад
Родитель
Сommit
351d8a65d6

+ 1 - 1
doc/examples/largepost.c

@@ -328,7 +328,7 @@ answer_to_connection (void *cls,
 
 
 int
-main ()
+main (void)
 {
   struct MHD_Daemon *daemon;
 

+ 1 - 1
doc/examples/logging.c

@@ -46,7 +46,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
 
 
 int
-main ()
+main (void)
 {
   struct MHD_Daemon *daemon;
 

+ 1 - 1
doc/examples/responseheaders.c

@@ -73,7 +73,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
 
 
 int
-main ()
+main (void)
 {
   struct MHD_Daemon *daemon;
 

+ 1 - 1
doc/examples/sessions.c

@@ -693,7 +693,7 @@ request_completed_callback (void *cls,
  * too long.
  */
 static void
-expire_sessions ()
+expire_sessions (void)
 {
   struct Session *pos;
   struct Session *prev;

+ 1 - 1
doc/examples/simplepost.c

@@ -192,7 +192,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
 
 
 int
-main ()
+main (void)
 {
   struct MHD_Daemon *daemon;
 

+ 1 - 1
doc/examples/tlsauthentication.c

@@ -247,7 +247,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
 
 
 int
-main ()
+main (void)
 {
   struct MHD_Daemon *daemon;
   char *key_pem;

+ 2 - 2
src/examples/demo.c

@@ -317,7 +317,7 @@ list_directory (struct ResponseDataContext *rdc,
  * Re-scan our local directory and re-build the index.
  */
 static void
-update_directory ()
+update_directory (void)
 {
   static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */
   struct MHD_Response *response;
@@ -858,7 +858,7 @@ catcher (int sig)
  * setup handlers to ignore SIGPIPE.
  */
 static void
-ignore_sigpipe ()
+ignore_sigpipe (void)
 {
   struct sigaction oldsig;
   struct sigaction sig;

+ 1 - 1
src/examples/demo_https.c

@@ -319,7 +319,7 @@ list_directory (struct ResponseDataContext *rdc,
  * Re-scan our local directory and re-build the index.
  */
 static void
-update_directory ()
+update_directory (void)
 {
   static size_t initial_allocation = 32 * 1024; /* initial size for response buffer */
   struct MHD_Response *response;

+ 1 - 1
src/examples/post_example.c

@@ -690,7 +690,7 @@ request_completed_callback (void *cls,
  * too long.
  */
 static void
-expire_sessions ()
+expire_sessions (void)
 {
   struct Session *pos;
   struct Session *prev;