diff options
author | Paul Selkirk <paul@psgd.org> | 2015-02-04 14:20:20 -0500 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-02-04 14:20:20 -0500 |
commit | b4f9c86dd621bb75bebaac8cf7389b2d1d4985d2 (patch) | |
tree | 2c57d9f439fa3954f92be9a78958b07f33f0d8c0 /sw | |
parent | ba90998c3fb80718d1d679a542f7b6624dc6b636 (diff) |
fix a few warnings and one errorsha256_core
Diffstat (limited to 'sw')
-rw-r--r-- | sw/test-sha256/test-sha256.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/test-sha256/test-sha256.c b/sw/test-sha256/test-sha256.c index bc3190c..0ea0d8c 100644 --- a/sw/test-sha256/test-sha256.c +++ b/sw/test-sha256/test-sha256.c @@ -67,9 +67,9 @@ //------------------------------------------------------------------------------ uint32_t get_w32(uint32_t addr) { - unsigned int read_addr; unsigned int read_data; - eim_read_32(read_addr, &read_data); + + eim_read_32(addr, &read_data); return read_data; } @@ -137,7 +137,6 @@ void test_dual_block() //------------------------------------------------------------------------------ void test_sha256() { - uint32_t i; test_single_block(); @@ -149,7 +148,6 @@ void test_sha256() int config_eim() { int ok; - unsigned int i; // try to setup eim (return value should be 1) printf("Configuring EIM .. "); @@ -162,6 +160,7 @@ int config_eim() printf("EIM Setup ok.\n"); } + return EXIT_SUCCESS; } //------------------------------------------------------------------------------ |