aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2021-12-01 18:30:40 -0500
committerrubenwardy <rw@rubenwardy.com>2022-04-08 14:55:21 +0100
commit5683bb76cc3a60d952c9f58c41adaa5f195dd3f4 (patch)
tree86154779a5a23b1385a8e6872a7c3d79da51847d /src/util
parent3a87fab6c899afa50b2b7615b882d0a81b922832 (diff)
downloadminetest-5683bb76cc3a60d952c9f58c41adaa5f195dd3f4.tar.gz
minetest-5683bb76cc3a60d952c9f58c41adaa5f195dd3f4.tar.bz2
minetest-5683bb76cc3a60d952c9f58c41adaa5f195dd3f4.zip
Fix compiler warnings
Diffstat (limited to 'src/util')
-rw-r--r--src/util/srp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/srp.cpp b/src/util/srp.cpp
index ceb2fef9e..daa7f332b 100644
--- a/src/util/srp.cpp
+++ b/src/util/srp.cpp
@@ -354,7 +354,7 @@ static size_t hash_length(SRP_HashAlgorithm alg)
case SRP_SHA384: return SHA384_DIGEST_LENGTH;
case SRP_SHA512: return SHA512_DIGEST_LENGTH;
*/
- default: return -1;
+ default: return 0;
};
}
// clang-format on
@@ -422,7 +422,7 @@ static SRP_Result H_nn(
}
static SRP_Result H_ns(mpz_t result, SRP_HashAlgorithm alg, const unsigned char *n,
- size_t len_n, const unsigned char *bytes, uint32_t len_bytes)
+ size_t len_n, const unsigned char *bytes, size_t len_bytes)
{
unsigned char buff[SHA512_DIGEST_LENGTH];
size_t nbytes = len_n + len_bytes;