1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

script: rename variable length_hash to hash_size

This commit is contained in:
Sébastien Helleu
2020-03-01 22:33:05 +01:00
parent 0271eacbe5
commit 1882686f8a
+3 -3
View File
@@ -756,7 +756,7 @@ script_repo_sha512sum_file (const char *filename)
struct stat st;
FILE *file;
char *data, hash[512 / 8], hash_hexa[((512 / 8) * 2) + 1];
int length_hash;
int hash_size;
if (stat (filename, &st) == -1)
return NULL;
@@ -774,12 +774,12 @@ script_repo_sha512sum_file (const char *filename)
}
fclose (file);
if (!weechat_crypto_hash (data, st.st_size, "sha512", hash, &length_hash))
if (!weechat_crypto_hash (data, st.st_size, "sha512", hash, &hash_size))
{
free (data);
return NULL;
}
weechat_string_base_encode (16, hash, length_hash, hash_hexa);
weechat_string_base_encode (16, hash, hash_size, hash_hexa);
weechat_string_tolower (hash_hexa);
free (data);