]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_heartbeat_allowed: corrected type on dummy wrapper
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 2 Feb 2017 10:26:18 +0000 (11:26 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 2 Feb 2017 10:26:21 +0000 (11:26 +0100)
That is, when compiling without heartbeat support, compilation
could fail due to the dummy wrapper not returning the right
type.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/ext/heartbeat.c

index 930d35026b4c675dea27a9fb2be7a2cbb9a79521..c459bfa779ce9d13f1f86974b13828c241e1d4ce 100644 (file)
@@ -538,7 +538,7 @@ void gnutls_heartbeat_enable(gnutls_session_t session, unsigned int type)
 {
 }
 
-int gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type)
+unsigned gnutls_heartbeat_allowed(gnutls_session_t session, unsigned int type)
 {
        return 0;
 }