Skip to content

Commit 0ffeee0

Browse files
committed
Declare inline functions as static
1 parent 98fec74 commit 0ffeee0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/mri/sha2.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#endif
88
#define SHA512_DIGEST_LENGTH crypto_hash_sha512_BYTES
99

10-
inline void SHA512Init(SHA2_CTX* ctx) { crypto_hash_sha512_init(ctx); }
11-
inline void SHA512Update(SHA2_CTX* ctx, const void *in, size_t inlen) { crypto_hash_sha512_update(ctx, in, inlen); }
12-
inline void SHA512Final(uint8_t* out, SHA2_CTX* ctx) { crypto_hash_sha512_final(ctx, out); }
10+
inline static void SHA512Init(SHA2_CTX* ctx) { crypto_hash_sha512_init(ctx); }
11+
inline static void SHA512Update(SHA2_CTX* ctx, const void *in, size_t inlen) { crypto_hash_sha512_update(ctx, in, inlen); }
12+
inline static void SHA512Final(uint8_t* out, SHA2_CTX* ctx) { crypto_hash_sha512_final(ctx, out); }
1313

0 commit comments

Comments
 (0)