]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
dco.h: fix return type when DCO is not enabled
authorLev Stipakov <lev@openvpn.net>
Wed, 17 Aug 2022 20:12:23 +0000 (22:12 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 18 Aug 2022 14:09:53 +0000 (16:09 +0200)
The correct return type for those functions is int,
so adjust return type accordingly for the cases
when DCO is not defined.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220817201223.302-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24968.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco.h

index e296cf2772a06604e0889c0bbdae0de59307b5c2..e5f6b51c64cb5fdd34c1ae919b13f94c378098a4 100644 (file)
@@ -310,10 +310,10 @@ dco_update_keys(dco_context_t *dco, struct tls_multi *multi)
     ASSERT(false);
 }
 
-static inline bool
+static inline int
 dco_p2p_add_new_peer(struct context *c)
 {
-    return true;
+    return 0;
 }
 
 static inline int
@@ -328,10 +328,10 @@ dco_remove_peer(struct context *c)
 {
 }
 
-static inline bool
+static inline int
 dco_multi_add_new_peer(struct multi_context *m, struct multi_instance *mi)
 {
-    return true;
+    return 0;
 }
 
 static inline void