gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_connection_info(): fixed ret


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_connection_info(): fixed returned 'bool' which is not a member of union MHD_ConnectionInfo
Date: Sun, 21 May 2017 17:56:13 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit a3519410eee2b11c813d97872724b1394480eea4
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun May 21 17:27:31 2017 +0300

    MHD_get_connection_info(): fixed returned 'bool' which is not a member of 
union MHD_ConnectionInfo
---
 src/microhttpd/connection.c | 3 ++-
 src/microhttpd/internal.h   | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index aebfb7b2..5fdc6837 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3486,7 +3486,8 @@ MHD_get_connection_info (struct MHD_Connection 
*connection,
     case MHD_CONNECTION_INFO_SOCKET_CONTEXT:
       return (const union MHD_ConnectionInfo *) &connection->socket_context;
     case MHD_CONNECTION_INFO_CONNECTION_SUSPENDED:
-      return (const union MHD_ConnectionInfo *) &connection->suspended;
+      connection->suspended_dummy = connection->suspended ? MHD_YES : MHD_NO;
+      return (const union MHD_ConnectionInfo *) &connection->suspended_dummy;
     case MHD_CONNECTION_INFO_CONNECTION_TIMEOUT:
       connection->connection_timeout_dummy = (unsigned 
int)connection->connection_timeout;
       return (const union MHD_ConnectionInfo *) 
&connection->connection_timeout_dummy;
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index ac8f7330..ac7531f1 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -996,6 +996,11 @@ struct MHD_Connection
   bool suspended;
 
   /**
+   * Special member to be returned by #MHD_get_connection_info()
+   */
+  int suspended_dummy;
+
+  /**
    * Is the connection wanting to resume?
    */
   bool resuming;

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



reply via email to

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