]> mj.ucw.cz Git - pciutils.git/commitdiff
pciutils: Remove #include <unistd.h> from files which do not need it
authorPali Rohár <pali@kernel.org>
Sun, 26 Dec 2021 21:11:36 +0000 (22:11 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 10 Feb 2022 11:58:17 +0000 (12:58 +0100)
In more files is <unistd.h> header file included without any usage.

MSVC does not provide this header file so remove this useless usage of
<unistd.h> to allow compilation under MSVC.

common.c
lib/i386-ports.c
ls-kernel.c

index c5a3c8f2ec1349983fcd3c41867812af2fe3a25c..3d69dd0b4a5ab45384fa4f86f76147f3445a3b0e 100644 (file)
--- a/common.c
+++ b/common.c
@@ -10,7 +10,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <unistd.h>
 
 #include "pciutils.h"
 
index 768e545305fbfd255d8fa42b161f8ab9ba847e0a..2e64fe4826238d358cc7aaca682a65b3797832d7 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "internal.h"
 
-#include <unistd.h>
 #include <string.h>
 
 #if defined(PCI_OS_LINUX)
index ecacd0e65dce62080ef064797e7a60f7349fe780..c47dc8301bef11a97f6f2f8864581e1671163423 100644 (file)
@@ -8,7 +8,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "lspci.h"