script: rename variable length_hash to hash_size
parent
0271eacbe5
commit
1882686f8a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue