aboutsummaryrefslogtreecommitdiff
path: root/sw/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'sw/hash.c')
-rw-r--r--sw/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/hash.c b/sw/hash.c
index 1b7d2cc..ae34ded 100644
--- a/sw/hash.c
+++ b/sw/hash.c
@@ -44,10 +44,10 @@
#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 <stdint.h>
#include <assert.h>
#include "cryptech.h"
@@ -202,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;
}