From b4f9c86dd621bb75bebaac8cf7389b2d1d4985d2 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 4 Feb 2015 14:20:20 -0500 Subject: fix a few warnings and one error --- sw/test-sha256/test-sha256.c | 7 +++---- 1 file 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; } //------------------------------------------------------------------------------ -- cgit v1.2.3