aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2021-10-03 11:25:39 +0200
committerNicolas Schodet2021-10-03 11:25:39 +0200
commitf2bcd1d96e7a4c1177879c8abad7a0bfbd49aa3d (patch)
treebade2f93d674ae5f2eb32a09e5916c740e4e229a
parentb56516708d357dd7a92edde3e2be4bd8463b66a0 (diff)
Remove inclusion of headers which are not needed
-rw-r--r--firmware.c5
-rw-r--r--flash.c10
-rw-r--r--lowlevel.c4
-rw-r--r--samba.c2
4 files changed, 3 insertions, 18 deletions
diff --git a/firmware.c b/firmware.c
index 3245f50..7300f0a 100644
--- a/firmware.c
+++ b/firmware.c
@@ -19,16 +19,15 @@
* USA
*/
-#include <errno.h>
#include <fcntl.h>
-#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include "error.h"
#include "firmware.h"
+
+#include "error.h"
#include "flash.h"
#include "flash_routine.h"
#include "lowlevel.h"
diff --git a/flash.c b/flash.c
index b9e1920..df2ff5d 100644
--- a/flash.c
+++ b/flash.c
@@ -19,16 +19,8 @@
* USA
*/
-#include <errno.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-
-#include "error.h"
#include "flash.h"
-#include "lowlevel.h"
+
#include "samba.h"
enum nxt_flash_commands
diff --git a/lowlevel.c b/lowlevel.c
index 138581a..25a6f86 100644
--- a/lowlevel.c
+++ b/lowlevel.c
@@ -20,13 +20,9 @@
*/
#include <assert.h>
-#include <errno.h>
#include <libusb.h>
-#include <stdint.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "lowlevel.h"
diff --git a/samba.c b/samba.c
index 88960ec..899267d 100644
--- a/samba.c
+++ b/samba.c
@@ -23,8 +23,6 @@
#include <stdio.h>
#include <string.h>
-#include "error.h"
-#include "lowlevel.h"
#include "samba.h"
static nxt_error_t