From d13aba56f8add01aa85fca6b6bf4aa2f9b8454a6 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Sat, 8 Dec 2018 21:19:44 +0000 Subject: [PATCH] disco: Fix: use static inline instead of simple inline Makes sure compiler doesn't decide not to inline a function --- disco/src/disco_asymmetric.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/src/disco_asymmetric.h b/disco/src/disco_asymmetric.h index 980f08d..9553592 100644 --- a/disco/src/disco_asymmetric.h +++ b/disco/src/disco_asymmetric.h @@ -82,7 +82,7 @@ typedef struct handshakeState_ { // ========== // used to generate long-term key pairs for a peer -inline void disco_generateKeyPair(keyPair *kp) { +static inline void disco_generateKeyPair(keyPair *kp) { crypto_box_keypair(kp->pub, kp->priv); kp->isSet = true; // TODO: is this useful? If it is, should we use a magic // number here in case it's not initialized to false?