Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2009 23:35:39 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200420 - in head/usr.bin: ar c89 calendar cksum cmp colcrt colrm compress cpuset expand fetch file2c find finger fmt fold gcore getopt hexdump jot killall ktrace lastcomm limits lock l...
Message-ID:  <200912112335.nBBNZdRT023731@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Dec 11 23:35:38 2009
New Revision: 200420
URL: http://svn.freebsd.org/changeset/base/200420

Log:
  Remove unneeded header includes from usr.bin/ except contributed code.
  
  Tested with:	make universe

Modified:
  head/usr.bin/ar/util.c
  head/usr.bin/c89/c89.c
  head/usr.bin/calendar/calendar.c
  head/usr.bin/calendar/day.c
  head/usr.bin/calendar/ostern.c
  head/usr.bin/calendar/paskha.c
  head/usr.bin/cksum/Makefile
  head/usr.bin/cksum/crc.c
  head/usr.bin/cksum/crc32.c
  head/usr.bin/cksum/sum1.c
  head/usr.bin/cksum/sum2.c
  head/usr.bin/cmp/regular.c
  head/usr.bin/cmp/special.c
  head/usr.bin/colcrt/colcrt.c
  head/usr.bin/colrm/colrm.c
  head/usr.bin/compress/zopen.c
  head/usr.bin/cpuset/cpuset.c
  head/usr.bin/expand/expand.c
  head/usr.bin/fetch/fetch.c
  head/usr.bin/file2c/file2c.c
  head/usr.bin/find/find.c
  head/usr.bin/find/getdate.y
  head/usr.bin/find/ls.c
  head/usr.bin/find/main.c
  head/usr.bin/find/misc.c
  head/usr.bin/find/option.c
  head/usr.bin/finger/lprint.c
  head/usr.bin/finger/net.c
  head/usr.bin/finger/util.c
  head/usr.bin/fmt/fmt.c
  head/usr.bin/fold/fold.c
  head/usr.bin/gcore/gcore.c
  head/usr.bin/getopt/getopt.c
  head/usr.bin/hexdump/display.c
  head/usr.bin/hexdump/hexdump.c
  head/usr.bin/jot/jot.c
  head/usr.bin/killall/killall.c
  head/usr.bin/ktrace/subr.c
  head/usr.bin/lastcomm/lastcomm.c
  head/usr.bin/lastcomm/pathnames.h
  head/usr.bin/lastcomm/readrec.c
  head/usr.bin/limits/limits.c
  head/usr.bin/lock/lock.c
  head/usr.bin/login/login.c
  head/usr.bin/login/login_fbtab.c
  head/usr.bin/login/pathnames.h
  head/usr.bin/mesg/mesg.c
  head/usr.bin/mkfifo/mkfifo.c
  head/usr.bin/mklocale/yacc.y
  head/usr.bin/mktemp/mktemp.c
  head/usr.bin/ncal/ncal.c
  head/usr.bin/netstat/atalk.c
  head/usr.bin/netstat/bpf.c
  head/usr.bin/netstat/if.c
  head/usr.bin/netstat/ipsec.c
  head/usr.bin/netstat/ipx.c
  head/usr.bin/netstat/main.c
  head/usr.bin/netstat/mbuf.c
  head/usr.bin/netstat/netgraph.c
  head/usr.bin/netstat/pfkey.c
  head/usr.bin/netstat/route.c
  head/usr.bin/netstat/sctp.c
  head/usr.bin/newgrp/newgrp.c
  head/usr.bin/newkey/update.c
  head/usr.bin/nfsstat/nfsstat.c
  head/usr.bin/nohup/nohup.c
  head/usr.bin/passwd/passwd.c
  head/usr.bin/paste/paste.c
  head/usr.bin/pr/egetopt.c
  head/usr.bin/procstat/procstat_args.c
  head/usr.bin/procstat/procstat_basic.c
  head/usr.bin/procstat/procstat_files.c
  head/usr.bin/procstat/procstat_vm.c
  head/usr.bin/rev/rev.c
  head/usr.bin/rlogin/rlogin.c
  head/usr.bin/rpcgen/rpc_clntout.c
  head/usr.bin/rpcgen/rpc_hout.c
  head/usr.bin/rpcgen/rpc_tblout.c
  head/usr.bin/rpcgen/rpc_util.c
  head/usr.bin/ruptime/ruptime.c
  head/usr.bin/rwall/rwall.c
  head/usr.bin/sed/main.c
  head/usr.bin/sed/misc.c
  head/usr.bin/showmount/showmount.c
  head/usr.bin/su/su.c
  head/usr.bin/systat/fetch.c
  head/usr.bin/systat/icmp.c
  head/usr.bin/systat/iostat.c
  head/usr.bin/systat/ip.c
  head/usr.bin/systat/main.c
  head/usr.bin/systat/mbufs.c
  head/usr.bin/systat/mode.c
  head/usr.bin/systat/netstat.c
  head/usr.bin/systat/swap.c
  head/usr.bin/systat/tcp.c
  head/usr.bin/systat/vmstat.c
  head/usr.bin/tar/getdate.c
  head/usr.bin/tee/tee.c
  head/usr.bin/time/time.c
  head/usr.bin/tput/tput.c
  head/usr.bin/tr/cmap.c
  head/usr.bin/tr/cmap.h
  head/usr.bin/tr/cset.c
  head/usr.bin/tr/cset.h
  head/usr.bin/tr/str.c
  head/usr.bin/tr/tr.c
  head/usr.bin/truss/main.c
  head/usr.bin/truss/setup.c
  head/usr.bin/tsort/tsort.c
  head/usr.bin/ul/ul.c
  head/usr.bin/unexpand/unexpand.c
  head/usr.bin/usbhidaction/usbhidaction.c
  head/usr.bin/vis/foldit.c
  head/usr.bin/w/pr_time.c
  head/usr.bin/w/w.c
  head/usr.bin/wall/ttymsg.c
  head/usr.bin/who/who.c
  head/usr.bin/xinstall/xinstall.c
  head/usr.bin/ypcat/ypcat.c
  head/usr.bin/ypmatch/ypmatch.c
  head/usr.bin/ypwhich/ypwhich.c

Modified: head/usr.bin/ar/util.c
==============================================================================
--- head/usr.bin/ar/util.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/ar/util.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -29,7 +29,6 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/queue.h>
 #include <sys/types.h>
-#include <errno.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/c89/c89.c
==============================================================================
--- head/usr.bin/c89/c89.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/c89/c89.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$");
 #include <err.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 
 #include <unistd.h>
 

Modified: head/usr.bin/calendar/calendar.c
==============================================================================
--- head/usr.bin/calendar/calendar.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/calendar/calendar.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$");
 #include <time.h>
 #include <unistd.h>
 
-#include "pathnames.h"
 #include "calendar.h"
 
 struct passwd	*pw;

Modified: head/usr.bin/calendar/day.c
==============================================================================
--- head/usr.bin/calendar/day.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/calendar/day.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$");
 #include <string.h>
 #include <time.h>
 
-#include "pathnames.h"
 #include "calendar.h"
 
 struct tm		*tp;

Modified: head/usr.bin/calendar/ostern.c
==============================================================================
--- head/usr.bin/calendar/ostern.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/calendar/ostern.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -30,7 +30,6 @@ __FBSDID("$FreeBSD$");
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <time.h>
 
 #include "calendar.h"
 

Modified: head/usr.bin/calendar/paskha.c
==============================================================================
--- head/usr.bin/calendar/paskha.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/calendar/paskha.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -30,7 +30,6 @@ __FBSDID("$FreeBSD$");
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <time.h>
 
 #include "calendar.h"
 

Modified: head/usr.bin/cksum/Makefile
==============================================================================
--- head/usr.bin/cksum/Makefile	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cksum/Makefile	Fri Dec 11 23:35:38 2009	(r200420)
@@ -5,5 +5,6 @@ PROG=	cksum
 SRCS=	cksum.c crc.c print.c sum1.c sum2.c crc32.c
 LINKS=	${BINDIR}/cksum ${BINDIR}/sum
 MLINKS=	cksum.1 sum.1
+WARNS?=	6
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/cksum/crc.c
==============================================================================
--- head/usr.bin/cksum/crc.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cksum/crc.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/types.h>
 
-#include <stdint.h>
 #include <unistd.h>
 
 #include "extern.h"

Modified: head/usr.bin/cksum/crc32.c
==============================================================================
--- head/usr.bin/cksum/crc32.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cksum/crc32.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -17,7 +17,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 
 #include <stdio.h>
-#include <stdint.h>
 #include <unistd.h>
 
 #include "extern.h"

Modified: head/usr.bin/cksum/sum1.c
==============================================================================
--- head/usr.bin/cksum/sum1.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cksum/sum1.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -43,7 +43,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 
 #include <unistd.h>
-#include <stdint.h>
 
 #include "extern.h"
 

Modified: head/usr.bin/cksum/sum2.c
==============================================================================
--- head/usr.bin/cksum/sum2.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cksum/sum2.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 
 #include <unistd.h>
-#include <stdint.h>
 
 #include "extern.h"
 

Modified: head/usr.bin/cmp/regular.c
==============================================================================
--- head/usr.bin/cmp/regular.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cmp/regular.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -45,12 +45,10 @@ __FBSDID("$FreeBSD$");
 #include <sys/stat.h>
 
 #include <err.h>
-#include <errno.h>
 #include <limits.h>
 #include <signal.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
 #include <unistd.h>
 
 #include "extern.h"

Modified: head/usr.bin/cmp/special.c
==============================================================================
--- head/usr.bin/cmp/special.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cmp/special.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -45,7 +45,6 @@ __FBSDID("$FreeBSD$");
 #include <err.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
 
 #include "extern.h"
 

Modified: head/usr.bin/colcrt/colcrt.c
==============================================================================
--- head/usr.bin/colcrt/colcrt.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/colcrt/colcrt.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$");
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <wchar.h>
 

Modified: head/usr.bin/colrm/colrm.c
==============================================================================
--- head/usr.bin/colrm/colrm.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/colrm/colrm.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -48,12 +48,9 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/types.h>
 #include <err.h>
-#include <errno.h>
-#include <limits.h>
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <wchar.h>
 

Modified: head/usr.bin/compress/zopen.c
==============================================================================
--- head/usr.bin/compress/zopen.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/compress/zopen.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -67,13 +67,11 @@ __FBSDID("$FreeBSD$");
 #include <sys/param.h>
 #include <sys/stat.h>
 
-#include <ctype.h>
 #include <errno.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 #include "zopen.h"
 
 #define	BITS		16		/* Default bits. */

Modified: head/usr.bin/cpuset/cpuset.c
==============================================================================
--- head/usr.bin/cpuset/cpuset.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/cpuset/cpuset.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$");
 #include <stdlib.h>
 #include <stdint.h>
 #include <unistd.h>
-#include <string.h>
 
 int cflag;
 int gflag;

Modified: head/usr.bin/expand/expand.c
==============================================================================
--- head/usr.bin/expand/expand.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/expand/expand.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$");
 #include <stdlib.h>
 #include <unistd.h>
 #include <wchar.h>
-#include <wctype.h>
 
 /*
  * expand - expand tabs to equivalent spaces

Modified: head/usr.bin/fetch/fetch.c
==============================================================================
--- head/usr.bin/fetch/fetch.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/fetch/fetch.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/stat.h>
 #include <sys/time.h>
 
-#include <ctype.h>
 #include <err.h>
 #include <errno.h>
 #include <signal.h>

Modified: head/usr.bin/file2c/file2c.c
==============================================================================
--- head/usr.bin/file2c/file2c.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/file2c/file2c.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -10,7 +10,6 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
-#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>

Modified: head/usr.bin/find/find.c
==============================================================================
--- head/usr.bin/find/find.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/find/find.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$");
 #include <fts.h>
 #include <regex.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include "find.h"

Modified: head/usr.bin/find/getdate.y
==============================================================================
--- head/usr.bin/find/getdate.y	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/find/getdate.y	Fri Dec 11 23:35:38 2009	(r200420)
@@ -15,7 +15,6 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
-#include <stdio.h>
 #include <ctype.h>
 
 /* The code at the top of get_date which figures out the offset of the

Modified: head/usr.bin/find/ls.c
==============================================================================
--- head/usr.bin/find/ls.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/find/ls.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -44,7 +44,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/stat.h>
 
 #include <err.h>
-#include <errno.h>
 #include <fts.h>
 #include <grp.h>
 #include <inttypes.h>

Modified: head/usr.bin/find/main.c
==============================================================================
--- head/usr.bin/find/main.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/find/main.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -53,7 +53,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/stat.h>
 
 #include <err.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <fts.h>
 #include <locale.h>

Modified: head/usr.bin/find/misc.c
==============================================================================
--- head/usr.bin/find/misc.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/find/misc.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/stat.h>
 
 #include <err.h>
-#include <errno.h>
 #include <fts.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/find/option.c
==============================================================================
--- head/usr.bin/find/option.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/find/option.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$");
 #include <err.h>
 #include <fts.h>
 #include <regex.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 

Modified: head/usr.bin/finger/lprint.c
==============================================================================
--- head/usr.bin/finger/lprint.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/finger/lprint.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -310,7 +310,7 @@ show_text(const char *directory, const c
 		return(0);
 
 	/* If short enough, and no newlines, show it on a single line.*/
-	if (sb.st_size <= LINE_LEN - strlen(header) - 5) {
+	if (sb.st_size <= (int)(LINE_LEN - strlen(header) - 5)) {
 		nr = read(fd, tbuf, sizeof(tbuf));
 		if (nr <= 0) {
 			(void)close(fd);

Modified: head/usr.bin/finger/net.c
==============================================================================
--- head/usr.bin/finger/net.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/finger/net.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -230,7 +230,7 @@ trying(const struct addrinfo *ai)
 	printf("Trying %s...\n", buf);
 }
 
-void
+static void
 cleanup(int sig __unused)
 {
 #define	ERRSTR	"Timed out.\n"

Modified: head/usr.bin/finger/util.c
==============================================================================
--- head/usr.bin/finger/util.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/finger/util.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -120,7 +120,7 @@ enter_lastlog(PERSON *pn)
 	}
 	if (fd == -1 ||
 	    lseek(fd, (long)pn->uid * sizeof(ll), SEEK_SET) !=
-	    (long)pn->uid * sizeof(ll) ||
+	    (off_t)(pn->uid * sizeof(ll)) ||
 	    read(fd, (char *)&ll, sizeof(ll)) != sizeof(ll)) {
 			/* as if never logged in */
 			ll.ll_line[0] = ll.ll_host[0] = '\0';

Modified: head/usr.bin/fmt/fmt.c
==============================================================================
--- head/usr.bin/fmt/fmt.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/fmt/fmt.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -180,7 +180,6 @@ __FBSDID("$FreeBSD$");
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <sysexits.h>
 #include <unistd.h>
 #include <wchar.h>

Modified: head/usr.bin/fold/fold.c
==============================================================================
--- head/usr.bin/fold/fold.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/fold/fold.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$");
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <wchar.h>
 #include <wctype.h>

Modified: head/usr.bin/gcore/gcore.c
==============================================================================
--- head/usr.bin/gcore/gcore.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/gcore/gcore.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -68,7 +68,6 @@ __FBSDID("$FreeBSD$");
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 
 #include "extern.h"

Modified: head/usr.bin/getopt/getopt.c
==============================================================================
--- head/usr.bin/getopt/getopt.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/getopt/getopt.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -7,7 +7,6 @@ __FBSDID("$FreeBSD$");
  */
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <unistd.h>
 
 int

Modified: head/usr.bin/hexdump/display.c
==============================================================================
--- head/usr.bin/hexdump/display.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/hexdump/display.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -47,7 +47,6 @@ __FBSDID("$FreeBSD$");
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 #include "hexdump.h"
 
 enum _vflag vflag = FIRST;

Modified: head/usr.bin/hexdump/hexdump.c
==============================================================================
--- head/usr.bin/hexdump/hexdump.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/hexdump/hexdump.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 #include <locale.h>
 #include <stdlib.h>
-#include <stdio.h>
 #include <string.h>
 #include "hexdump.h"
 

Modified: head/usr.bin/jot/jot.c
==============================================================================
--- head/usr.bin/jot/jot.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/jot/jot.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -59,7 +59,6 @@ __FBSDID("$FreeBSD$");
 #include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
-#include <time.h>
 #include <unistd.h>
 
 /* Defaults */

Modified: head/usr.bin/killall/killall.c
==============================================================================
--- head/usr.bin/killall/killall.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/killall/killall.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -34,8 +34,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/uio.h>
 #include <sys/user.h>
 #include <sys/sysctl.h>
-#include <fcntl.h>
-#include <dirent.h>
 #include <jail.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/ktrace/subr.c
==============================================================================
--- head/usr.bin/ktrace/subr.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/ktrace/subr.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -47,8 +47,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/uio.h>
 #include <sys/ktrace.h>
 
-#include <stdio.h>
-
 #include "ktrace.h"
 
 void timevaladd(struct timeval *, struct timeval *);

Modified: head/usr.bin/lastcomm/lastcomm.c
==============================================================================
--- head/usr.bin/lastcomm/lastcomm.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/lastcomm/lastcomm.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -51,9 +51,6 @@ __FBSDID("$FreeBSD$");
 
 #include <ctype.h>
 #include <err.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <grp.h>
 #include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/lastcomm/pathnames.h
==============================================================================
--- head/usr.bin/lastcomm/pathnames.h	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/lastcomm/pathnames.h	Fri Dec 11 23:35:38 2009	(r200420)
@@ -31,8 +31,8 @@
  * SUCH DAMAGE.
  *
  *	@(#)pathnames.h	8.1 (Berkeley) 6/6/93
+ *
+ * $FreeBSD$
  */
 
-#include <paths.h>
-
 #define	_PATH_ACCT	"/var/account/acct"

Modified: head/usr.bin/lastcomm/readrec.c
==============================================================================
--- head/usr.bin/lastcomm/readrec.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/lastcomm/readrec.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -33,13 +33,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 #include <sys/acct.h>
 
-#include <ctype.h>
-#include <err.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stddef.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
 int	 readrec_forward(FILE *f, struct acctv2 *av2);

Modified: head/usr.bin/limits/limits.c
==============================================================================
--- head/usr.bin/limits/limits.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/limits/limits.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -32,7 +32,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/param.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <stdarg.h>
 #include <stdint.h>
 #include <ctype.h>
 #include <errno.h>

Modified: head/usr.bin/lock/lock.c
==============================================================================
--- head/usr.bin/lock/lock.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/lock/lock.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/signal.h>
 #include <sys/consio.h>
 #include <err.h>
-#include <ctype.h>
 #include <errno.h>
 #include <pwd.h>
 #include <stdio.h>

Modified: head/usr.bin/login/login.c
==============================================================================
--- head/usr.bin/login/login.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/login/login.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -64,8 +64,8 @@ __FBSDID("$FreeBSD$");
 #include <err.h>
 #include <errno.h>
 #include <grp.h>
-#include <libutil.h>
 #include <login_cap.h>
+#include <paths.h>
 #include <pwd.h>
 #include <setjmp.h>
 #include <signal.h>

Modified: head/usr.bin/login/login_fbtab.c
==============================================================================
--- head/usr.bin/login/login_fbtab.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/login/login_fbtab.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -71,7 +71,6 @@ __FBSDID("$FreeBSD$");
 #include <syslog.h>
 #include <unistd.h>
 
-#include "login.h"
 #include "pathnames.h"
 
 static void	login_protect(const char *, char *, int, uid_t, gid_t);

Modified: head/usr.bin/login/pathnames.h
==============================================================================
--- head/usr.bin/login/pathnames.h	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/login/pathnames.h	Fri Dec 11 23:35:38 2009	(r200420)
@@ -34,8 +34,6 @@
  * $FreeBSD$
  */
 
-#include <paths.h>
-
 #define	_PATH_HUSHLOGIN		".hushlogin"
 #define	_PATH_MOTDFILE		"/etc/motd"
 #define _PATH_FBTAB		"/etc/fbtab"

Modified: head/usr.bin/mesg/mesg.c
==============================================================================
--- head/usr.bin/mesg/mesg.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/mesg/mesg.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -56,7 +56,6 @@ __FBSDID("$FreeBSD$");
 #include <err.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 
 static void usage(void);

Modified: head/usr.bin/mkfifo/mkfifo.c
==============================================================================
--- head/usr.bin/mkfifo/mkfifo.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/mkfifo/mkfifo.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$");
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 
 #define	BASEMODE	S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | \

Modified: head/usr.bin/mklocale/yacc.y
==============================================================================
--- head/usr.bin/mklocale/yacc.y	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/mklocale/yacc.y	Fri Dec 11 23:35:38 2009	(r200420)
@@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$");
 
 #include <ctype.h>
 #include <err.h>
-#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Modified: head/usr.bin/mktemp/mktemp.c
==============================================================================
--- head/usr.bin/mktemp/mktemp.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/mktemp/mktemp.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -143,7 +143,7 @@ main(int argc, char **argv)
 }
 
 static void
-usage()
+usage(void)
 {
 	fprintf(stderr,
 		"usage: mktemp [-d] [-q] [-t prefix] [-u] template ...\n");

Modified: head/usr.bin/ncal/ncal.c
==============================================================================
--- head/usr.bin/ncal/ncal.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/ncal/ncal.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -30,7 +30,6 @@ static const char rcsid[] =
 #endif /* not lint */
 
 #include <calendar.h>
-#include <ctype.h>
 #include <err.h>
 #include <langinfo.h>
 #include <locale.h>

Modified: head/usr.bin/netstat/atalk.c
==============================================================================
--- head/usr.bin/netstat/atalk.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/atalk.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -52,8 +52,6 @@ __FBSDID("$FreeBSD$");
 #include <netatalk/at.h>
 #include <netatalk/ddp_var.h>
 
-#include <errno.h>
-#include <nlist.h>
 #include <netdb.h>
 #include <stdint.h>
 #include <stdio.h>

Modified: head/usr.bin/netstat/bpf.c
==============================================================================
--- head/usr.bin/netstat/bpf.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/bpf.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -47,7 +47,6 @@ __FBSDID("$FreeBSD$");
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "netstat.h"
 

Modified: head/usr.bin/netstat/if.c
==============================================================================
--- head/usr.bin/netstat/if.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/if.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -68,7 +68,6 @@ __FBSDID("$FreeBSD$");
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "netstat.h"
 

Modified: head/usr.bin/netstat/ipsec.c
==============================================================================
--- head/usr.bin/netstat/ipsec.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/ipsec.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -111,8 +111,6 @@ __FBSDID("$FreeBSD$");
 
 #include <stdint.h>
 #include <stdio.h>
-#include <string.h>
-#include <unistd.h>
 #include "netstat.h"
 
 #ifdef IPSEC

Modified: head/usr.bin/netstat/ipx.c
==============================================================================
--- head/usr.bin/netstat/ipx.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/ipx.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -64,8 +64,6 @@ __FBSDID("$FreeBSD$");
 #define	SANAMES
 #include <netipx/spx_debug.h>
 
-#include <nlist.h>
-#include <errno.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>

Modified: head/usr.bin/netstat/main.c
==============================================================================
--- head/usr.bin/netstat/main.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/main.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -60,12 +60,10 @@ __FBSDID("$FreeBSD$");
 
 #include <ctype.h>
 #include <err.h>
-#include <errno.h>
 #include <kvm.h>
 #include <limits.h>
 #include <netdb.h>
 #include <nlist.h>
-#include <paths.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/netstat/mbuf.c
==============================================================================
--- head/usr.bin/netstat/mbuf.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/mbuf.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$");
 #include <memstat.h>
 #include <stdint.h>
 #include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include "netstat.h"
 
 /*

Modified: head/usr.bin/netstat/netgraph.c
==============================================================================
--- head/usr.bin/netstat/netgraph.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/netgraph.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -50,11 +50,9 @@ __FBSDID("$FreeBSD$");
 #include <netgraph/ng_socketvar.h>
 
 #include <nlist.h>
-#include <errno.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>
-#include <unistd.h>
 #include <err.h>
 #include "netstat.h"
 

Modified: head/usr.bin/netstat/pfkey.c
==============================================================================
--- head/usr.bin/netstat/pfkey.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/pfkey.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -83,8 +83,6 @@ __FBSDID("$FreeBSD$");
 
 #include <stdint.h>
 #include <stdio.h>
-#include <string.h>
-#include <unistd.h>
 #include "netstat.h"
 
 #ifdef IPSEC

Modified: head/usr.bin/netstat/route.c
==============================================================================
--- head/usr.bin/netstat/route.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/route.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -69,7 +69,6 @@ __FBSDID("$FreeBSD$");
 #include <stdlib.h>
 #include <string.h>
 #include <sysexits.h>
-#include <unistd.h>
 #include <err.h>
 #include "netstat.h"
 

Modified: head/usr.bin/netstat/sctp.c
==============================================================================
--- head/usr.bin/netstat/sctp.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/netstat/sctp.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -52,13 +52,10 @@ __FBSDID("$FreeBSD$");
 
 #include <err.h>
 #include <errno.h>
-#include <libutil.h>
-#include <netdb.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 #include "netstat.h"
 
 #ifdef SCTP

Modified: head/usr.bin/newgrp/newgrp.c
==============================================================================
--- head/usr.bin/newgrp/newgrp.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/newgrp/newgrp.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -34,10 +34,8 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 
 #include <err.h>
-#include <errno.h>
 #include <grp.h>
 #include <libgen.h>
-#include <limits.h>
 #include <login_cap.h>
 #include <paths.h>
 #include <pwd.h>

Modified: head/usr.bin/newkey/update.c
==============================================================================
--- head/usr.bin/newkey/update.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/newkey/update.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -58,7 +58,6 @@ __FBSDID("$FreeBSD$");
 #include <netdb.h>
 #endif	/* YP */
 
-#include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Modified: head/usr.bin/nfsstat/nfsstat.c
==============================================================================
--- head/usr.bin/nfsstat/nfsstat.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/nfsstat/nfsstat.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -62,7 +62,6 @@ static const char rcsid[] =
 
 #include <signal.h>
 #include <fcntl.h>
-#include <ctype.h>
 #include <errno.h>
 #include <kvm.h>
 #include <limits.h>
@@ -71,7 +70,6 @@ static const char rcsid[] =
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <paths.h>
 #include <err.h>
 
 struct nlist nl[] = {

Modified: head/usr.bin/nohup/nohup.c
==============================================================================
--- head/usr.bin/nohup/nohup.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/nohup/nohup.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$");
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 
 static void dofile(void);

Modified: head/usr.bin/passwd/passwd.c
==============================================================================
--- head/usr.bin/passwd/passwd.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/passwd/passwd.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$");
 #include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <syslog.h>
 #include <unistd.h>
 
 #include <security/pam_appl.h>

Modified: head/usr.bin/paste/paste.c
==============================================================================
--- head/usr.bin/paste/paste.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/paste/paste.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -52,12 +52,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 
 #include <err.h>
-#include <errno.h>
-#include <limits.h>
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <wchar.h>
 

Modified: head/usr.bin/pr/egetopt.c
==============================================================================
--- head/usr.bin/pr/egetopt.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/pr/egetopt.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -46,11 +46,8 @@ __FBSDID("$FreeBSD$");
 
 #include <ctype.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
-#include "extern.h"
-
 /*
  * egetopt:	get option letter from argument vector (an extended
  *		version of getopt).

Modified: head/usr.bin/procstat/procstat_args.c
==============================================================================
--- head/usr.bin/procstat/procstat_args.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/procstat/procstat_args.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -34,7 +34,6 @@
 #include <errno.h>
 #include <limits.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include "procstat.h"

Modified: head/usr.bin/procstat/procstat_basic.c
==============================================================================
--- head/usr.bin/procstat/procstat_basic.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/procstat/procstat_basic.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -30,7 +30,6 @@
 #include <sys/sysctl.h>
 #include <sys/user.h>
 
-#include <err.h>
 #include <stdio.h>
 #include <string.h>
 

Modified: head/usr.bin/procstat/procstat_files.c
==============================================================================
--- head/usr.bin/procstat/procstat_files.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/procstat/procstat_files.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -36,7 +36,6 @@
 
 #include <arpa/inet.h>
 
-#include <err.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/procstat/procstat_vm.c
==============================================================================
--- head/usr.bin/procstat/procstat_vm.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/procstat/procstat_vm.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -30,7 +30,6 @@
 #include <sys/sysctl.h>
 #include <sys/user.h>
 
-#include <err.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/rev/rev.c
==============================================================================
--- head/usr.bin/rev/rev.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/rev/rev.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -49,11 +49,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/types.h>
 
 #include <err.h>
-#include <errno.h>
 #include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <wchar.h>
 

Modified: head/usr.bin/rlogin/rlogin.c
==============================================================================
--- head/usr.bin/rlogin/rlogin.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/rlogin/rlogin.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -72,9 +72,7 @@ __FBSDID("$FreeBSD$");
 #include <err.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <libutil.h>
 #include <netdb.h>
-#include <paths.h>
 #include <pwd.h>
 #include <setjmp.h>
 #include <termios.h>

Modified: head/usr.bin/rpcgen/rpc_clntout.c
==============================================================================
--- head/usr.bin/rpcgen/rpc_clntout.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/rpcgen/rpc_clntout.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
  * Copyright (C) 1987, Sun Microsytsems, Inc.
  */
 #include <stdio.h>
-#include <string.h>
 #include <rpc/types.h>
 #include "rpc_parse.h"
 #include "rpc_scan.h"

Modified: head/usr.bin/rpcgen/rpc_hout.c
==============================================================================
--- head/usr.bin/rpcgen/rpc_hout.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/rpcgen/rpc_hout.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
  * Copyright (C) 1987, Sun Microsystems, Inc.
  */
 #include <stdio.h>
-#include <ctype.h>
 #include "rpc_parse.h"
 #include "rpc_scan.h"
 #include "rpc_util.h"

Modified: head/usr.bin/rpcgen/rpc_tblout.c
==============================================================================
--- head/usr.bin/rpcgen/rpc_tblout.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/rpcgen/rpc_tblout.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -43,7 +43,6 @@ __FBSDID("$FreeBSD$");
  */
 #include <err.h>
 #include <stdio.h>
-#include <string.h>
 #include "rpc_parse.h"
 #include "rpc_scan.h"
 #include "rpc_util.h"

Modified: head/usr.bin/rpcgen/rpc_util.c
==============================================================================
--- head/usr.bin/rpcgen/rpc_util.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/rpcgen/rpc_util.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
  * Copyright (C) 1989, Sun Microsystems, Inc.
  */
 #include <err.h>
-#include <ctype.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>

Modified: head/usr.bin/ruptime/ruptime.c
==============================================================================
--- head/usr.bin/ruptime/ruptime.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/ruptime/ruptime.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$");
 
 #include <dirent.h>
 #include <err.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/rwall/rwall.c
==============================================================================
--- head/usr.bin/rwall/rwall.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/rwall/rwall.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -60,7 +60,6 @@ __FBSDID("$FreeBSD$");
 #include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <time.h>
 #include <unistd.h>
 

Modified: head/usr.bin/sed/main.c
==============================================================================
--- head/usr.bin/sed/main.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/sed/main.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -51,12 +51,10 @@ static const char sccsid[] = "@(#)main.c
 
 #include <err.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <libgen.h>
 #include <limits.h>
 #include <locale.h>
 #include <regex.h>
-#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Modified: head/usr.bin/sed/misc.c
==============================================================================
--- head/usr.bin/sed/misc.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/sed/misc.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -41,14 +41,8 @@ static const char sccsid[] = "@(#)misc.c
 #include <sys/types.h>
 
 #include <err.h>
-#include <limits.h>
 #include <regex.h>
-#include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
-
-#include "defs.h"
-#include "extern.h"
 
 /*
  * Return a string for a regular expression error passed.  This is overkill,

Modified: head/usr.bin/showmount/showmount.c
==============================================================================
--- head/usr.bin/showmount/showmount.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/showmount/showmount.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -55,7 +55,6 @@ static const char rcsid[] =
 #include <sys/socketvar.h>
 
 #include <err.h>
-#include <netdb.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_clnt.h>
 #include <rpc/pmap_prot.h>

Modified: head/usr.bin/su/su.c
==============================================================================
--- head/usr.bin/su/su.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/su/su.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -88,7 +88,6 @@ __FBSDID("$FreeBSD$");
 
 #include <err.h>
 #include <errno.h>
-#include <grp.h>
 #include <login_cap.h>
 #include <paths.h>
 #include <pwd.h>

Modified: head/usr.bin/systat/fetch.c
==============================================================================
--- head/usr.bin/systat/fetch.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/systat/fetch.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -42,7 +42,6 @@ static const char sccsid[] = "@(#)fetch.
 #include <sys/types.h>
 #include <sys/sysctl.h>
 
-#include <err.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>

Modified: head/usr.bin/systat/icmp.c
==============================================================================
--- head/usr.bin/systat/icmp.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/systat/icmp.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -54,9 +54,7 @@ static char sccsid[] = "@(#)mbufs.c	8.1 
 #include <netinet/ip_icmp.h>
 #include <netinet/icmp_var.h>
 
-#include <stdlib.h>
 #include <string.h>
-#include <paths.h>
 #include "systat.h"
 #include "extern.h"
 #include "mode.h"

Modified: head/usr.bin/systat/iostat.c
==============================================================================
--- head/usr.bin/systat/iostat.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/systat/iostat.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -73,7 +73,6 @@ static const char sccsid[] = "@(#)iostat
 #include <devstat.h>
 #include <err.h>
 #include <nlist.h>
-#include <paths.h>
 #include <stdlib.h>
 #include <string.h>
 

Modified: head/usr.bin/systat/ip.c
==============================================================================
--- head/usr.bin/systat/ip.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/systat/ip.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -55,10 +55,6 @@ static const char sccsid[] = "@(#)mbufs.
 #include <netinet/udp.h>
 #include <netinet/udp_var.h>
 
-#include <stdlib.h>
-#include <string.h>
-#include <paths.h>
-
 #include "systat.h"
 #include "extern.h"
 #include "mode.h"

Modified: head/usr.bin/systat/main.c
==============================================================================
--- head/usr.bin/systat/main.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/systat/main.c	Fri Dec 11 23:35:38 2009	(r200420)
@@ -53,7 +53,6 @@ static const char copyright[] =
 #include <limits.h>
 #include <locale.h>
 #include <nlist.h>
-#include <paths.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/usr.bin/systat/mbufs.c
==============================================================================
--- head/usr.bin/systat/mbufs.c	Fri Dec 11 23:30:22 2009	(r200419)
+++ head/usr.bin/systat/mbufs.c	Fri Dec 11 23:35:38 2009	(r200420)

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912112335.nBBNZdRT023731>