aboutsummaryrefslogtreecommitdiff
path: root/eim
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-17 10:55:41 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-04-17 10:55:41 +0200
commitb4cb0b5b5f5bad22d1075307938d4aa88041cd45 (patch)
tree5736545c153afe26a4485d7d6e30ab1d05846a1b /eim
parentaeaf94f4e83826fe56f38fc670973a60a5010ef1 (diff)
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.
Diffstat (limited to 'eim')
-rw-r--r--eim/sw/hash_eim.c4
1 files changed, 1 insertions, 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;
}