summaryrefslogtreecommitdiffstats
path: root/pw
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-03-26 11:41:35 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-03-26 11:41:35 +0000
commita00e6421526e08e6eca5f31d19ceab6f2f717ea1 (patch)
treeadfcd66ecc1afe828960f21c95f594dcbc1c8403 /pw
parent82ebb75cc3c5fab880c8b368af788dbded6a1070 (diff)
downloadpw-darwin-a00e6421526e08e6eca5f31d19ceab6f2f717ea1.tar.gz
pw-darwin-a00e6421526e08e6eca5f31d19ceab6f2f717ea1.tar.zst
pw-darwin-a00e6421526e08e6eca5f31d19ceab6f2f717ea1.zip
Remove some unneeded headers
Found by 'include-what-you-use'
Diffstat (limited to 'pw')
-rw-r--r--pw/cpdir.c1
-rw-r--r--pw/pw_user.c2
-rw-r--r--pw/pw_utils.c3
-rw-r--r--pw/pw_vpw.c1
4 files changed, 0 insertions, 7 deletions
diff --git a/pw/cpdir.c b/pw/cpdir.c
index 334f789..679758b 100644
--- a/pw/cpdir.c
+++ b/pw/cpdir.c
@@ -37,7 +37,6 @@ static const char rcsid[] =
#include <unistd.h>
#include "pw.h"
-#include "pwupd.h"
void
copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid,
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 2f87b56..5ad1409 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -31,8 +31,6 @@ static const char rcsid[] =
#endif /* not lint */
#include <sys/param.h>
-#include <sys/resource.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <ctype.h>
diff --git a/pw/pw_utils.c b/pw/pw_utils.c
index 1a4f812..e483977 100644
--- a/pw/pw_utils.c
+++ b/pw/pw_utils.c
@@ -27,13 +27,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <sys/types.h>
#include <sys/wait.h>
#include <err.h>
-#include <inttypes.h>
#include <sysexits.h>
-#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/pw/pw_vpw.c b/pw/pw_vpw.c
index 2d1c75b..08c8bd5 100644
--- a/pw/pw_vpw.c
+++ b/pw/pw_vpw.c
@@ -37,7 +37,6 @@ static const char rcsid[] =
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <sys/param.h>
#include <err.h>
#include "pwupd.h"