summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-19 14:03:22 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-19 14:03:22 +0000
commit197db38af8b34390a69c6d88a6316bb30df40dfc (patch)
treeda559539708da454f5d32562b3cd375a5fd9d0e8 /bin
parent5a82b39427f5ad1cf4f3859542603e09f2ed1117 (diff)
Move limits.h include from sh.h to the files that actually need it. No
binary change. ok nicm@
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/expr.c3
-rw-r--r--bin/ksh/jobs.c4
-rw-r--r--bin/ksh/misc.c3
-rw-r--r--bin/ksh/sh.h3
-rw-r--r--bin/ksh/shf.c4
-rw-r--r--bin/ksh/table.c4
-rw-r--r--bin/ksh/var.c3
7 files changed, 16 insertions, 8 deletions
diff --git a/bin/ksh/expr.c b/bin/ksh/expr.c
index 52e9965fb70..d7bf29f9ec5 100644
--- a/bin/ksh/expr.c
+++ b/bin/ksh/expr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expr.c,v 1.29 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: expr.c,v 1.30 2015/10/19 14:03:21 mmcc Exp $ */
/*
* Korn expression evaluation
@@ -8,6 +8,7 @@
*/
#include <ctype.h>
+#include <limits.h>
#include "sh.h"
diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c
index 15900b58d76..a9292300662 100644
--- a/bin/ksh/jobs.c
+++ b/bin/ksh/jobs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jobs.c,v 1.48 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: jobs.c,v 1.49 2015/10/19 14:03:21 mmcc Exp $ */
/*
* Process and job control
@@ -20,6 +20,8 @@
#include <sys/time.h>
#include <sys/wait.h>
+#include <limits.h>
+
#include "sh.h"
#include "tty.h"
diff --git a/bin/ksh/misc.c b/bin/ksh/misc.c
index a9eecde9c63..4d9af6b6929 100644
--- a/bin/ksh/misc.c
+++ b/bin/ksh/misc.c
@@ -1,10 +1,11 @@
-/* $OpenBSD: misc.c,v 1.47 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: misc.c,v 1.48 2015/10/19 14:03:21 mmcc Exp $ */
/*
* Miscellaneous functions
*/
#include <ctype.h>
+#include <limits.h>
#include "sh.h"
#include "charclass.h"
diff --git a/bin/ksh/sh.h b/bin/ksh/sh.h
index f2e59ff0a0c..23685674894 100644
--- a/bin/ksh/sh.h
+++ b/bin/ksh/sh.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sh.h,v 1.41 2015/10/19 14:01:37 mmcc Exp $ */
+/* $OpenBSD: sh.h,v 1.42 2015/10/19 14:03:21 mmcc Exp $ */
/*
* Public Domain Bourne/Korn shell
@@ -22,7 +22,6 @@
#include <errno.h>
#include <fcntl.h>
-#include <limits.h>
#include <signal.h>
diff --git a/bin/ksh/shf.c b/bin/ksh/shf.c
index f7d228596a3..2d032eb81c7 100644
--- a/bin/ksh/shf.c
+++ b/bin/ksh/shf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shf.c,v 1.23 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: shf.c,v 1.24 2015/10/19 14:03:21 mmcc Exp $ */
/*
* Shell file I/O routines
@@ -6,6 +6,8 @@
#include <sys/stat.h>
+#include <limits.h>
+
#include "sh.h"
/* flags to shf_emptybuf() */
diff --git a/bin/ksh/table.c b/bin/ksh/table.c
index 2af57b41d19..d22eca066a2 100644
--- a/bin/ksh/table.c
+++ b/bin/ksh/table.c
@@ -1,9 +1,11 @@
-/* $OpenBSD: table.c,v 1.19 2015/10/05 23:26:58 nicm Exp $ */
+/* $OpenBSD: table.c,v 1.20 2015/10/19 14:03:21 mmcc Exp $ */
/*
* dynamic hashed associative table for commands and variables
*/
+#include <limits.h>
+
#include "sh.h"
#define INIT_TBLS 8 /* initial table size (power of 2) */
diff --git a/bin/ksh/var.c b/bin/ksh/var.c
index 36853af83a2..d1776717599 100644
--- a/bin/ksh/var.c
+++ b/bin/ksh/var.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: var.c,v 1.51 2015/10/19 02:15:45 mmcc Exp $ */
+/* $OpenBSD: var.c,v 1.52 2015/10/19 14:03:21 mmcc Exp $ */
#include <sys/stat.h>
#include <ctype.h>
+#include <limits.h>
#include <time.h>
#include "sh.h"