Skip to content

Commit 184211d

Browse files
committed
vip fixes
1 parent 30b60a6 commit 184211d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void vip_gen_chunk_update(struct qdl_device *qdl, const void *buf, size_t len)
105105
if (!qdl_sim->create_digests)
106106
return;
107107

108-
SHA256Update(&vip_gen->ctx, (u_int8_t *)buf, len);
108+
SHA256Update(&vip_gen->ctx, (uint8_t *)buf, len);
109109
}
110110

111111
void vip_gen_chunk_store(struct qdl_device *qdl)
@@ -179,7 +179,7 @@ static int calculate_hash_of_file(const char *filename, unsigned char *hash)
179179

180180
size_t bytes;
181181
while ((bytes = fread(buf, 1, sizeof(buf), fp)) > 0) {
182-
SHA256Update(&ctx, (u_int8_t *)buf, bytes);
182+
SHA256Update(&ctx, (uint8_t *)buf, bytes);
183183
}
184184

185185
fclose(fp);

0 commit comments

Comments
 (0)