summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-19 15:52:26 +0100
committerJim Meyering <meyering@redhat.com>2008-03-19 16:48:32 +0100
commit092239c608efa6e266599a5d0117bda9cfb60221 (patch)
treed5cadcc080db95b8a846f70aa07de9a5ce3daf4b /src
parent116f832b45bd2c751e8ddf30ad33fb79eab81153 (diff)
downloadcoreutils-092239c608efa6e266599a5d0117bda9cfb60221.tar.xz
Check for -- and remove -- some unnecessarily included header files.
* Makefile.maint: Add checks for a handful of additional header files. * src/mktemp.c: Don't include "long-options.h". Not used. * src/pr.c: Don't include "inttostr.h". Not used. * src/printenv.c: Don't include "error.h". Not used. * src/test.c: Don't include "error.h". Not used. * src/touch.c: Don't include "safe-read.h". Not used.
Diffstat (limited to 'src')
-rw-r--r--src/mktemp.c1
-rw-r--r--src/pr.c3
-rw-r--r--src/printenv.c3
-rw-r--r--src/test.c3
-rw-r--r--src/touch.c4
5 files changed, 5 insertions, 9 deletions
diff --git a/src/mktemp.c b/src/mktemp.c
index 279077f02..6f12d9947 100644
--- a/src/mktemp.c
+++ b/src/mktemp.c
@@ -25,7 +25,6 @@
#include "error.h"
#include "filenamecat.h"
-#include "long-options.h"
#include "quote.h"
#include "tempname.h"
diff --git a/src/pr.c b/src/pr.c
index 1ed79d652..77d4c8ae7 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -1,5 +1,5 @@
/* pr -- convert text files for printing.
- Copyright (C) 88, 91, 1995-2007 Free Software Foundation, Inc.
+ Copyright (C) 88, 91, 1995-2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -315,7 +315,6 @@
#include "system.h"
#include "error.h"
#include "hard-locale.h"
-#include "inttostr.h"
#include "mbswidth.h"
#include "quote.h"
#include "stat-time.h"
diff --git a/src/printenv.c b/src/printenv.c
index 69384ce2a..fff1644ae 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -1,5 +1,5 @@
/* printenv -- print all or part of environment
- Copyright (C) 1989-1997, 1999-2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1989-1997, 1999-2005, 2007-2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -33,7 +33,6 @@
#include <getopt.h>
#include "system.h"
-#include "error.h"
#include "long-options.h"
/* Exit status for syntax errors, etc. */
diff --git a/src/test.c b/src/test.c
index daaf25012..c6502f948 100644
--- a/src/test.c
+++ b/src/test.c
@@ -2,7 +2,7 @@
/* Modified to run with the GNU shell by bfox. */
-/* Copyright (C) 1987-2005, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 1987-2005, 2007-2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -38,7 +38,6 @@
#endif
#include "system.h"
-#include "error.h"
#include "euidaccess.h"
#include "inttostr.h"
#include "quote.h"
diff --git a/src/touch.c b/src/touch.c
index 205fbf6d0..76c811fd3 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -1,5 +1,6 @@
/* touch -- change modification and access times of files
- Copyright (C) 87, 1989-1991, 1995-2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 87, 1989-1991, 1995-2005, 2007-2008
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,7 +31,6 @@
#include "posixtm.h"
#include "posixver.h"
#include "quote.h"
-#include "safe-read.h"
#include "stat-time.h"
#include "utimens.h"