[Cryptech-Commits] [core/platform/novena] 01/01: Removed include of i2c lib not used in the program. Changed from i2c to eim in printout. Removed inclusion of arpa/inet lib also not used by the application.

git at cryptech.is git at cryptech.is
Fri Apr 17 08:55:59 UTC 2015


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

joachim at secworks.se pushed a commit to branch master
in repository core/platform/novena.

commit b4cb0b5b5f5bad22d1075307938d4aa88041cd45
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Fri Apr 17 10:55:41 2015 +0200

    Removed include of i2c lib not used in the program. Changed from i2c to eim in printout. Removed inclusion of arpa/inet lib also not used by the application.
---
 eim/sw/hash_eim.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/eim/sw/hash_eim.c b/eim/sw/hash_eim.c
index e698129..42dedf2 100644
--- a/eim/sw/hash_eim.c
+++ b/eim/sw/hash_eim.c
@@ -44,9 +44,7 @@
 #include <unistd.h>
 #include <time.h>
 #include <sys/time.h>
-#include <linux/i2c-dev.h>
 #include <sys/ioctl.h>
-#include <arpa/inet.h>
 #include <ctype.h>
 #include <assert.h>
 
@@ -204,7 +202,7 @@ static int hash(char *algo, char *file, uint8_t *digest)
      * cores always assert valid before ready.
      */
     if (tc_read(daddr, digest, dlen) != 0) {
-        perror("i2c read failed");
+        perror("eim read failed");
         goto out;
     }
 



More information about the Commits mailing list