[Cryptech-Commits] [sw/libhal] 03/07: Remove unused includes.

git at cryptech.is git at cryptech.is
Sun Nov 1 04:03:24 UTC 2015


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

paul at psgd.org pushed a commit to branch master
in repository sw/libhal.

commit 2e71409d56ada39eb060bcda9aaffb3bd0ef6e24
Author: Paul Selkirk <paul at psgd.org>
Date:   Mon Oct 26 17:35:56 2015 -0400

    Remove unused includes.
---
 aes_keywrap.c             | 2 --
 asn1.c                    | 4 ----
 asn1_internal.h           | 1 -
 csprng.c                  | 3 ---
 ecdsa.c                   | 4 ----
 errorstrings.c            | 6 ------
 hal_io_eim.c              | 6 +-----
 hash.c                    | 4 ----
 modexp.c                  | 2 --
 pbkdf2.c                  | 6 ------
 tests/test-aes-key-wrap.c | 1 -
 tests/test-ecdsa.c        | 3 ---
 tests/test-hash.c         | 1 -
 tests/test-pbkdf2.c       | 8 +-------
 tests/test-rsa.c          | 2 --
 15 files changed, 2 insertions(+), 51 deletions(-)

diff --git a/aes_keywrap.c b/aes_keywrap.c
index 7b90c9d..b10a70b 100644
--- a/aes_keywrap.c
+++ b/aes_keywrap.c
@@ -41,8 +41,6 @@
  * then split the result back to 64-bit blocks immediately afterwards.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
 #include <assert.h>
diff --git a/asn1.c b/asn1.c
index 2ea44bd..54f022a 100644
--- a/asn1.c
+++ b/asn1.c
@@ -46,11 +46,7 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <stdio.h>
 #include <stdint.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <string.h>
 #include <assert.h>
 
 #include "hal.h"
diff --git a/asn1_internal.h b/asn1_internal.h
index f6e470f..5dc2a13 100644
--- a/asn1_internal.h
+++ b/asn1_internal.h
@@ -42,7 +42,6 @@
 #define _HAL_ASN1_H_
 
 #include <stdint.h>
-#include <stdlib.h>
 
 #include <tfm.h>
 
diff --git a/csprng.c b/csprng.c
index 235bd12..1051bbd 100644
--- a/csprng.c
+++ b/csprng.c
@@ -32,10 +32,7 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <assert.h>
 #include <stdint.h>
-#include <stddef.h>
-#include <stdio.h>
 
 #include "hal.h"
 
diff --git a/ecdsa.c b/ecdsa.c
index e2da87e..be97723 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -65,11 +65,7 @@
  * in a relatively type-safe manner before calling libtom.
  */
 
-#include <stdio.h>
 #include <stdint.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <string.h>
 #include <assert.h>
 
 #include "hal.h"
diff --git a/errorstrings.c b/errorstrings.c
index 1a234dd..5a79546 100644
--- a/errorstrings.c
+++ b/errorstrings.c
@@ -32,12 +32,6 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
-#include <assert.h>
-
 #include "hal.h"
 
 #define DEFINE_HAL_ERROR(_code_,_text_) \
diff --git a/hal_io_eim.c b/hal_io_eim.c
index 3687b95..bc907b5 100644
--- a/hal_io_eim.c
+++ b/hal_io_eim.c
@@ -34,12 +34,8 @@
  */
 
 #include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
 #include <stdint.h>
-#include <arpa/inet.h>
+#include <arpa/inet.h>		/* htonl/ntohl */
 
 #include "novena-eim.h"
 #include "hal.h"
diff --git a/hash.c b/hash.c
index e06278d..52dbbf0 100644
--- a/hash.c
+++ b/hash.c
@@ -37,10 +37,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
 
 #include "hal.h"
 
diff --git a/modexp.c b/modexp.c
index 11a8d21..1512284 100644
--- a/modexp.c
+++ b/modexp.c
@@ -41,8 +41,6 @@
 
 #include <stdio.h>
 #include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
 #include <assert.h>
 
 #include "hal.h"
diff --git a/pbkdf2.c b/pbkdf2.c
index 4ad1e3a..1c43fe4 100644
--- a/pbkdf2.c
+++ b/pbkdf2.c
@@ -34,13 +34,7 @@
 
 #include <assert.h>
 #include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <stdint.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
 
 #include "hal.h"
 
diff --git a/tests/test-aes-key-wrap.c b/tests/test-aes-key-wrap.c
index f8467ec..b784c54 100644
--- a/tests/test-aes-key-wrap.c
+++ b/tests/test-aes-key-wrap.c
@@ -33,7 +33,6 @@
  */
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
 #include <assert.h>
diff --git a/tests/test-ecdsa.c b/tests/test-ecdsa.c
index 558120b..23d9720 100644
--- a/tests/test-ecdsa.c
+++ b/tests/test-ecdsa.c
@@ -46,10 +46,7 @@
 
 #include <stdio.h>
 #include <stdint.h>
-#include <stdlib.h>
 #include <string.h>
-#include <assert.h>
-#include <errno.h>
 
 #include <sys/time.h>
 
diff --git a/tests/test-hash.c b/tests/test-hash.c
index 144b1b9..2a5c18b 100644
--- a/tests/test-hash.c
+++ b/tests/test-hash.c
@@ -33,7 +33,6 @@
  */
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
 #include <assert.h>
diff --git a/tests/test-pbkdf2.c b/tests/test-pbkdf2.c
index 0688226..3668153 100644
--- a/tests/test-pbkdf2.c
+++ b/tests/test-pbkdf2.c
@@ -32,15 +32,9 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <assert.h>
-#include <string.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <stdint.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/ioctl.h>
+#include <string.h>
 
 #include <hal.h>
 
diff --git a/tests/test-rsa.c b/tests/test-rsa.c
index 46afa03..0707127 100644
--- a/tests/test-rsa.c
+++ b/tests/test-rsa.c
@@ -40,9 +40,7 @@
 
 #include <stdio.h>
 #include <stdint.h>
-#include <stdlib.h>
 #include <string.h>
-#include <assert.h>
 #include <errno.h>
 
 #include <sys/time.h>



More information about the Commits mailing list