summaryrefslogtreecommitdiff
path: root/usr.bin/wc/wc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-16 06:40:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-16 06:40:24 +0000
commit315054f4737a39489e0a14f3a92bff61f1592832 (patch)
tree62bf010653374ce09b6beb4dfa0414a91457233b /usr.bin/wc/wc.c
parent79e3d817585ca08a91e30ad14abe43e2ab70295f (diff)
Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Diffstat (limited to 'usr.bin/wc/wc.c')
-rw-r--r--usr.bin/wc/wc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c
index 5387cd03200..5f1d66f8942 100644
--- a/usr.bin/wc/wc.c
+++ b/usr.bin/wc/wc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wc.c,v 1.16 2013/11/27 13:32:02 okan Exp $ */
+/* $OpenBSD: wc.c,v 1.17 2015/01/16 06:40:14 deraadt Exp $ */
/*
* Copyright (c) 1980, 1987, 1991, 1993
@@ -29,15 +29,15 @@
* SUCH DAMAGE.
*/
+#include <sys/param.h> /* MAXBSIZE */
+#include <sys/stat.h>
+#include <sys/file.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <ctype.h>
#include <err.h>
-#include <sys/param.h>
-#include <sys/stat.h>
-#include <sys/file.h>
#include <unistd.h>
#include <util.h>