diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-05-21 17:27:31 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-05-21 17:27:31 +0300 |
commit | a3519410eee2b11c813d97872724b1394480eea4 (patch) | |
tree | 0bbf3ad6f5dd87ffa58bc6110bc40b368639f6dd /src/microhttpd/connection.c | |
parent | 5060c37b95ba4b66a251f5942bd4f45066ed3635 (diff) | |
download | libmicrohttpd-a3519410eee2b11c813d97872724b1394480eea4.tar.gz libmicrohttpd-a3519410eee2b11c813d97872724b1394480eea4.zip |
MHD_get_connection_info(): fixed returned 'bool' which is not a member of union MHD_ConnectionInfo
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
3486 | case MHD_CONNECTION_INFO_SOCKET_CONTEXT: | 3486 | case MHD_CONNECTION_INFO_SOCKET_CONTEXT: |
3487 | return (const union MHD_ConnectionInfo *) &connection->socket_context; | 3487 | return (const union MHD_ConnectionInfo *) &connection->socket_context; |
3488 | case MHD_CONNECTION_INFO_CONNECTION_SUSPENDED: | 3488 | case MHD_CONNECTION_INFO_CONNECTION_SUSPENDED: |
3489 | return (const union MHD_ConnectionInfo *) &connection->suspended; | 3489 | connection->suspended_dummy = connection->suspended ? MHD_YES : MHD_NO; |
3490 | return (const union MHD_ConnectionInfo *) &connection->suspended_dummy; | ||
3490 | case MHD_CONNECTION_INFO_CONNECTION_TIMEOUT: | 3491 | case MHD_CONNECTION_INFO_CONNECTION_TIMEOUT: |
3491 | connection->connection_timeout_dummy = (unsigned int)connection->connection_timeout; | 3492 | connection->connection_timeout_dummy = (unsigned int)connection->connection_timeout; |
3492 | return (const union MHD_ConnectionInfo *) &connection->connection_timeout_dummy; | 3493 | return (const union MHD_ConnectionInfo *) &connection->connection_timeout_dummy; |