diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-31 07:38:50 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-31 07:39:10 +0100 |
commit | be67c7d260113f39f4c4a3adbd2769246b8a72d8 (patch) | |
tree | f9ac479084a3c41551fe516fe34f7e929554c342 | |
parent | b4b2482af1502eb9663f399b35a39c9af6ce0bb5 (diff) | |
download | gnutls-be67c7d260113f39f4c4a3adbd2769246b8a72d8.tar.gz |
gnutls_heartbeat_allowed: corrected return type
This reflects better the fact that this function returns
a boolean.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | lib/ext/heartbeat.c | 2 | ||||
-rw-r--r-- | lib/includes/gnutls/gnutls.h.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext/heartbeat.c b/lib/ext/heartbeat.c index a1b6893fae..ac113b8e25 100644 --- a/lib/ext/heartbeat.c +++ b/lib/ext/heartbeat.c @@ -71,7 +71,7 @@ void gnutls_heartbeat_enable(gnutls_session_t session, unsigned int type) * * Since: 3.1.2 **/ -int gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type) +unsigned gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type) { extension_priv_data_t epriv; diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in index c0c8d80972..f6c3e90c33 100644 --- a/lib/includes/gnutls/gnutls.h.in +++ b/lib/includes/gnutls/gnutls.h.in @@ -1214,7 +1214,7 @@ void gnutls_heartbeat_set_timeouts(gnutls_session_t session, void gnutls_heartbeat_enable(gnutls_session_t session, unsigned int type); #define GNUTLS_HB_LOCAL_ALLOWED_TO_SEND (1<<2) -int gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type); +unsigned gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type); /* Safe renegotiation */ unsigned gnutls_safe_renegotiation_status(gnutls_session_t session); |