瀏覽代碼

disco: Fix: use static inline instead of simple inline

Makes sure compiler doesn't decide not to inline a function
disco
Kris Kwiatkowski 5 年之前
父節點
當前提交
d13aba56f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      disco/src/disco_asymmetric.h

+ 1
- 1
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?


Loading…
取消
儲存