]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: remove endian.h
authorWarner Losh <imp@bsdimp.com>
Thu, 4 Oct 2018 15:11:48 +0000 (09:11 -0600)
committerM. Warner Losh <wlosh@netflix.com>
Thu, 4 Oct 2018 21:04:09 +0000 (15:04 -0600)
endian.h isn't needed, so remove it.

nvme-ioctl.c
nvme-print.c
nvme.c
nvme.h

index 15d051929e63c2dfcf562bb2532ee996514c5260..ee376c47a288b9be4c8824ddee7fb4118aa36cab 100644 (file)
@@ -1,11 +1,9 @@
-#include <endian.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <string.h>
 #include <errno.h>
 #include <unistd.h>
 
-#include <endian.h>
 #include <errno.h>
 #include <getopt.h>
 #include <fcntl.h>
index df7df4d0a5a0c7718e227a813f3e130f82f9bf74..2799ab721c9fc92e09da5f41dcefdd035b736f0e 100644 (file)
@@ -1,4 +1,3 @@
-#include <endian.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
diff --git a/nvme.c b/nvme.c
index e2f4abc93c55d3e63e8dc4dba7549efd2cb5b162..4b2d1d237dca83a0440502d711705b4f283f7bea 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -24,7 +24,6 @@
  * This program uses NVMe IOCTLs to run native nvme commands to a device.
  */
 
-#include <endian.h>
 #include <errno.h>
 #include <getopt.h>
 #include <fcntl.h>
diff --git a/nvme.h b/nvme.h
index 431809d886fb7d8a8d77e8576b55e575dbed30db..32ac96d34a28490e9ba6f98ebae92fbd51669755 100644 (file)
--- a/nvme.h
+++ b/nvme.h
@@ -16,8 +16,8 @@
 #define _NVME_H
 
 #include <stdbool.h>
-#include <endian.h>
 #include <stdint.h>
+#include <endian.h>
 #include "plugin.h"
 #include "json.h"