lib/base/etpm.cpp: use <sys/socket.h> instead of <linux/socket.h>
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 12 Apr 2010 08:59:33 +0000 (10:59 +0200)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 6 Oct 2010 09:02:24 +0000 (11:02 +0200)
lib/base/etpm.cpp

index f1ac07ba5c29d15e0f00edf9c8ed44d6790aa5cd..c264272440e4dfe8117a893adfb3f573c503b503 100644 (file)
@@ -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;