fix compile warnings in ed25519 code
This commit is contained in:
@@ -268,8 +268,8 @@ int sha512(const unsigned char *message, size_t message_len, unsigned char *out)
|
|||||||
{
|
{
|
||||||
sha512_context ctx;
|
sha512_context ctx;
|
||||||
int ret;
|
int ret;
|
||||||
if (ret = sha512_init(&ctx)) return ret;
|
if ((ret = sha512_init(&ctx))) return ret;
|
||||||
if (ret = sha512_update(&ctx, message, message_len)) return ret;
|
if ((ret = sha512_update(&ctx, message, message_len))) return ret;
|
||||||
if (ret = sha512_final(&ctx, out)) return ret;
|
if ((ret = sha512_final(&ctx, out))) return ret;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
@@ -160,12 +160,14 @@ int main()
|
|||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
||||||
int ret = print_failures();
|
int ret = print_failures();
|
||||||
|
#if !defined TORRENT_LOGGING && !defined TORRENT_VERBOSE_LOGGING
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
remove_all(test_dir, ec);
|
remove_all(test_dir, ec);
|
||||||
if (ec)
|
if (ec)
|
||||||
fprintf(stderr, "failed to remove test dir: %s\n", ec.message().c_str());
|
fprintf(stderr, "failed to remove test dir: %s\n", ec.message().c_str());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user