Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2017 13:57:35 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316959 - head/usr.bin/diff
Message-ID:  <201704151357.v3FDvZFW051101@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Apr 15 13:57:35 2017
New Revision: 316959
URL: https://svnweb.freebsd.org/changeset/base/316959

Log:
  Clean up headers declaration

Modified:
  head/usr.bin/diff/diff.c
  head/usr.bin/diff/diffdir.c
  head/usr.bin/diff/diffreg.c

Modified: head/usr.bin/diff/diff.c
==============================================================================
--- head/usr.bin/diff/diff.c	Sat Apr 15 11:16:11 2017	(r316958)
+++ head/usr.bin/diff/diff.c	Sat Apr 15 13:57:35 2017	(r316959)
@@ -27,11 +27,9 @@ __FBSDID("$FreeBSD$");
 
 #include <ctype.h>
 #include <err.h>
-#include <errno.h>
 #include <getopt.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <stdarg.h>
 #include <string.h>
 #include <unistd.h>
 #include <limits.h>

Modified: head/usr.bin/diff/diffdir.c
==============================================================================
--- head/usr.bin/diff/diffdir.c	Sat Apr 15 11:16:11 2017	(r316958)
+++ head/usr.bin/diff/diffdir.c	Sat Apr 15 13:57:35 2017	(r316959)
@@ -28,17 +28,13 @@ __FBSDID("$FreeBSD$");
 #include <dirent.h>
 #include <err.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <fnmatch.h>
-#include <paths.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 #include <limits.h>
 
 #include "diff.h"
-#include "xmalloc.h"
 
 static int selectfile(const struct dirent *);
 static void diffit(struct dirent *, char *, size_t, char *, size_t, int);

Modified: head/usr.bin/diff/diffreg.c
==============================================================================
--- head/usr.bin/diff/diffreg.c	Sat Apr 15 11:16:11 2017	(r316958)
+++ head/usr.bin/diff/diffreg.c	Sat Apr 15 13:57:35 2017	(r316959)
@@ -80,6 +80,7 @@ __FBSDID("$FreeBSD$");
 #include <errno.h>
 #include <fcntl.h>
 #include <paths.h>
+#include <regex.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>



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