disco: Fix: use static inline instead of simple inline

Makes sure compiler doesn't decide not to inline a function
This commit is contained in:
Henry Case 2018-12-08 21:19:44 +00:00
parent 65faa0d4f9
commit d13aba56f8

View File

@ -82,7 +82,7 @@ typedef struct handshakeState_ {
// ========== // ==========
// used to generate long-term key pairs for a peer // 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); crypto_box_keypair(kp->pub, kp->priv);
kp->isSet = true; // TODO: is this useful? If it is, should we use a magic 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? // number here in case it's not initialized to false?