gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 04/06: MHD_connection_handle_write(): chang


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 04/06: MHD_connection_handle_write(): changed return type to void as return value is not used Functionality is unchanged.
Date: Mon, 05 Jun 2017 22:49:07 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 74f0569b5e3f10f9f708ada03c71b77f10f26081
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Mon Jun 5 23:08:45 2017 +0300

    MHD_connection_handle_write(): changed return type to void as return value 
is not used
    Functionality is unchanged.
---
 src/microhttpd/connection.c | 26 ++++++++++++--------------
 src/microhttpd/connection.h |  4 +---
 2 files changed, 13 insertions(+), 17 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 19e6f24c..38a700fb 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2770,16 +2770,14 @@ MHD_connection_handle_read (struct MHD_Connection 
*connection)
  * been determined that the socket can be written to.
  *
  * @param connection connection to handle
- * @return always #MHD_YES (we should continue to process the
- *         connection)
  */
-int
+void
 MHD_connection_handle_write (struct MHD_Connection *connection)
 {
   struct MHD_Response *response;
   ssize_t ret;
   if (connection->suspended)
-    return MHD_YES;
+    return;
 
 #ifdef HTTPS_SUPPORT
   if (MHD_TLS_CONN_NO_TLS != connection->tls_state)
@@ -2787,7 +2785,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
       if (MHD_TLS_CONN_CONNECTED > connection->tls_state)
         {
           if (!MHD_run_tls_handshake_ (connection))
-            return MHD_YES;
+            return;
         }
     }
 #endif /* HTTPS_SUPPORT */
@@ -2827,7 +2825,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
 #endif
              CONNECTION_CLOSE_ERROR (connection,
                                       NULL);
-              return MHD_YES;
+              return;
             }
 #if DEBUG_SEND_DATA
           fprintf (stderr,
@@ -2856,7 +2854,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
                 break;
               CONNECTION_CLOSE_ERROR (connection,
                                       _("Connection was closed while sending 
response headers.\n"));
-              return MHD_YES;
+              return;
             }
           connection->write_buffer_send_offset += ret;
           MHD_update_last_activity_ (connection);
@@ -2915,7 +2913,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
             if (ret < 0)
               {
                 if (MHD_ERR_AGAIN_ == ret)
-                  return MHD_YES;
+                  return;
 #ifdef HAVE_MESSAGES
                 MHD_DLOG (connection->daemon,
                           _("Failed to send data in request for `%s'.\n"),
@@ -2923,7 +2921,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
 #endif
                 CONNECTION_CLOSE_ERROR (connection,
                                         NULL);
-                return MHD_YES;
+                return;
               }
             connection->response_write_position += ret;
             MHD_update_last_activity_ (connection);
@@ -2947,7 +2945,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
                 break;
               CONNECTION_CLOSE_ERROR (connection,
                                       _("Connection was closed while sending 
response body.\n"));
-              return MHD_YES;
+              return;
             }
           connection->write_buffer_send_offset += ret;
           MHD_update_last_activity_ (connection);
@@ -2975,7 +2973,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
                 break;
               CONNECTION_CLOSE_ERROR (connection,
                                       _("Connection was closed while sending 
response body.\n"));
-              return MHD_YES;
+              return;
             }
           connection->write_buffer_send_offset += ret;
           MHD_update_last_activity_ (connection);
@@ -2988,7 +2986,7 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
           EXTRA_CHECK (0);
           break;
         case MHD_CONNECTION_CLOSED:
-          return MHD_YES;
+          return;
         case MHD_CONNECTION_IN_CLEANUP:
           EXTRA_CHECK (0);
           break;
@@ -3001,11 +2999,11 @@ MHD_connection_handle_write (struct MHD_Connection 
*connection)
           EXTRA_CHECK (0);
          CONNECTION_CLOSE_ERROR (connection,
                                   _("Internal error\n"));
-          return MHD_YES;
+          return;
         }
       break;
     }
-  return MHD_YES;
+  return;
 }
 
 
diff --git a/src/microhttpd/connection.h b/src/microhttpd/connection.h
index 5deb5317..f5316887 100644
--- a/src/microhttpd/connection.h
+++ b/src/microhttpd/connection.h
@@ -89,10 +89,8 @@ MHD_connection_handle_read (struct MHD_Connection 
*connection);
  * call this function
  *
  * @param connection connection to handle
- * @return always MHD_YES (we should continue to process the
- *         connection)
  */
-int
+void
 MHD_connection_handle_write (struct MHD_Connection *connection);
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]