[Cryptech-Commits] [test/novena_base] 04/04: fix a few warnings and one error

git at cryptech.is git at cryptech.is
Wed Feb 4 19:21:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch sha256_core
in repository test/novena_base.

commit b4f9c86dd621bb75bebaac8cf7389b2d1d4985d2
Author: Paul Selkirk <paul at psgd.org>
Date:   Wed Feb 4 14:20:20 2015 -0500

    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;
 }
 
 //------------------------------------------------------------------------------



More information about the Commits mailing list