Change implementation return type to match the definition.
authorWerner Koch <wk@gnupg.org>
Tue, 11 Mar 2014 12:54:21 +0000 (13:54 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 11 Mar 2014 12:54:21 +0000 (13:54 +0100)
* src/gpgme.c (gpgme_get_sub_protocol): Change return type to
gpgme_protocol_t.
--

Yet another enum/int mismatch.

Reported-by: Albert Chin.
src/gpgme.c

index 9c297d8..4182c74 100644 (file)
@@ -370,7 +370,7 @@ gpgme_set_sub_protocol (gpgme_ctx_t ctx, gpgme_protocol_t protocol)
 }
 
 
-gpgme_error_t
+gpgme_protocol_t
 gpgme_get_sub_protocol (gpgme_ctx_t ctx)
 {
   TRACE2 (DEBUG_CTX, "gpgme_get_sub_protocol", ctx,