aboutsummaryrefslogtreecommitdiff
path: root/lib/base
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base')
-rw-r--r--lib/base/etpm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base/etpm.cpp b/lib/base/etpm.cpp
index f1ac07ba..c2642724 100644
--- a/lib/base/etpm.cpp
+++ b/lib/base/etpm.cpp
@@ -1,4 +1,4 @@
-#include <linux/socket.h>
+#include <sys/socket.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -103,7 +103,7 @@ void* eTPM::recv_cmd(unsigned int *tag, unsigned int *len)
void eTPM::parse_data(const unsigned char *data, unsigned int datalen)
{
- unsigned int i, j;
+ unsigned int i;
unsigned int tag;
unsigned int len;
const unsigned char *val;