Commit bc0a380a authored by Timofey Titovets's avatar Timofey Titovets

Use uint32_t instead int in comparisons

Signed-off-by: 's avatarTimofey Titovets <nefelim4ag@gmail.com>
parent a1a6d40d
......@@ -60,7 +60,7 @@ int init_hash(void)
void debug_print_digest(FILE *stream, unsigned char *digest)
{
int i;
uint32_t i;
for (i = 0; i < digest_len; i++)
fprintf(stream, "%.2x", digest[i]);
......@@ -75,7 +75,7 @@ struct running_checksum *start_running_checksum(void)
{
struct running_checksum *c = calloc(1, sizeof(struct running_checksum));
if (c) {
if (c) {
if (gcry_md_open(&c->hd, HASH_FUNC, 0) != GPG_ERR_NO_ERROR) {
free(c);
c = NULL;
......
......@@ -85,7 +85,7 @@ uint64_t parse_size(char *s)
static char *size_strs[] = { "", "K", "M", "G", "T", "P", "E"};
int pretty_size_snprintf(uint64_t size, char *str, size_t str_bytes)
{
int num_divs = 0;
uint32_t num_divs = 0;
float fraction;
if (str_bytes == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment