2008-02-21 01:55:25 +01:00
|
|
|
From: Bernhard Walle <bwalle@suse.de>
|
|
|
|
Subject: [PATCH] Fix compilation warning
|
|
|
|
|
|
|
|
This patch fixes following compilation warning:
|
|
|
|
|
|
|
|
purgatory/purgatory.c:21: warning: passing argument 2 of 'sha256_update' makes pointer from integer without a cast
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Bernhard Walle <bwalle@suse.de>
|
|
|
|
|
|
|
|
---
|
|
|
|
purgatory/purgatory.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/purgatory/purgatory.c
|
|
|
|
+++ b/purgatory/purgatory.c
|
|
|
|
@@ -18,7 +18,7 @@ void verify_sha256_digest(void)
|
|
|
|
sha256_starts(&ctx);
|
|
|
|
end = &sha256_regions[sizeof(sha256_regions)/sizeof(sha256_regions[0])];
|
|
|
|
for(ptr = sha256_regions; ptr < end; ptr++) {
|
|
|
|
- sha256_update(&ctx, ptr->start, ptr->len);
|
2008-02-27 00:42:11 +01:00
|
|
|
+ sha256_update(&ctx, (uint8_t *)((uintptr_t)ptr->start), ptr->len);
|
2008-02-21 01:55:25 +01:00
|
|
|
}
|
|
|
|
sha256_finish(&ctx, digest);
|
|
|
|
if (memcmp(digest, sha256_digest, sizeof(digest)) != 0) {
|