From 9187622899e9ed9f2f704e6dc258e5fb61a7979f Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 12 Apr 2015 12:43:53 +0200 Subject: [PATCH] Fix build Some compilers had problems with these inline functions. --- srp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srp.c b/srp.c index 6152d3c..2bf1ad8 100644 --- a/srp.c +++ b/srp.c @@ -290,17 +290,17 @@ static int hash_length( SRP_HashAlgorithm alg ) }; } -inline int mpz_num_bytes( const mpz_t op ) +inline static int mpz_num_bytes( const mpz_t op ) { return (mpz_sizeinbase (op, 2) + 7) / 8; } -inline void mpz_to_bin( const mpz_t op, unsigned char * to ) +inline static void mpz_to_bin( const mpz_t op, unsigned char * to ) { mpz_export(to, NULL, 1, 1, 1, 0, op); } -inline void mpz_from_bin( const unsigned char * s, int len, mpz_t ret ) +inline static void mpz_from_bin( const unsigned char * s, int len, mpz_t ret ) { mpz_import(ret, len, 1, 1, 1, 0, s); }