Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh include <limits.h> for CHAR_MIN/CHAR_MAX



details:   https://anonhg.NetBSD.org/src/rev/ba8f4ed99596
branches:  trunk
changeset: 778475:ba8f4ed99596
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 28 20:11:25 2012 +0000

description:
include <limits.h> for CHAR_MIN/CHAR_MAX

diffstat:

 bin/sh/expand.c |  5 +++--
 bin/sh/input.c  |  5 +++--
 bin/sh/parser.c |  5 +++--
 bin/sh/syntax.c |  5 +++--
 bin/sh/var.c    |  5 +++--
 5 files changed, 15 insertions(+), 10 deletions(-)

diffs (116 lines):

diff -r 13614289d946 -r ba8f4ed99596 bin/sh/expand.c
--- a/bin/sh/expand.c   Wed Mar 28 17:39:33 2012 +0000
+++ b/bin/sh/expand.c   Wed Mar 28 20:11:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: expand.c,v 1.86 2011/08/31 16:24:54 plunky Exp $       */
+/*     $NetBSD: expand.c,v 1.87 2012/03/28 20:11:25 christos Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)expand.c   8.5 (Berkeley) 5/15/95";
 #else
-__RCSID("$NetBSD: expand.c,v 1.86 2011/08/31 16:24:54 plunky Exp $");
+__RCSID("$NetBSD: expand.c,v 1.87 2012/03/28 20:11:25 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -48,6 +48,7 @@
 #include <dirent.h>
 #include <unistd.h>
 #include <pwd.h>
+#include <limits.h>
 #include <stdlib.h>
 #include <stdio.h>
 
diff -r 13614289d946 -r ba8f4ed99596 bin/sh/input.c
--- a/bin/sh/input.c    Wed Mar 28 17:39:33 2012 +0000
+++ b/bin/sh/input.c    Wed Mar 28 20:11:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: input.c,v 1.44 2011/02/17 15:13:49 pooka Exp $ */
+/*     $NetBSD: input.c,v 1.45 2012/03/28 20:11:25 christos Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)input.c    8.3 (Berkeley) 6/9/95";
 #else
-__RCSID("$NetBSD: input.c,v 1.44 2011/02/17 15:13:49 pooka Exp $");
+__RCSID("$NetBSD: input.c,v 1.45 2012/03/28 20:11:25 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -45,6 +45,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 
diff -r 13614289d946 -r ba8f4ed99596 bin/sh/parser.c
--- a/bin/sh/parser.c   Wed Mar 28 17:39:33 2012 +0000
+++ b/bin/sh/parser.c   Wed Mar 28 20:11:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parser.c,v 1.81 2012/03/25 18:49:13 christos Exp $     */
+/*     $NetBSD: parser.c,v 1.82 2012/03/28 20:11:25 christos Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,11 +37,12 @@
 #if 0
 static char sccsid[] = "@(#)parser.c   8.7 (Berkeley) 5/16/95";
 #else
-__RCSID("$NetBSD: parser.c,v 1.81 2012/03/25 18:49:13 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.82 2012/03/28 20:11:25 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include <stdlib.h>
+#include <limits.h>
 
 #include "shell.h"
 #include "parser.h"
diff -r 13614289d946 -r ba8f4ed99596 bin/sh/syntax.c
--- a/bin/sh/syntax.c   Wed Mar 28 17:39:33 2012 +0000
+++ b/bin/sh/syntax.c   Wed Mar 28 20:11:25 2012 +0000
@@ -1,8 +1,9 @@
-/*     $NetBSD: syntax.c,v 1.2 2007/12/12 22:55:43 lukem Exp $ */
+/*     $NetBSD: syntax.c,v 1.3 2012/03/28 20:11:25 christos Exp $      */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: syntax.c,v 1.2 2007/12/12 22:55:43 lukem Exp $");
+__RCSID("$NetBSD: syntax.c,v 1.3 2012/03/28 20:11:25 christos Exp $");
 
+#include <limits.h>
 #include "shell.h"
 #include "syntax.h"
 #include "parser.h"
diff -r 13614289d946 -r ba8f4ed99596 bin/sh/var.c
--- a/bin/sh/var.c      Wed Mar 28 17:39:33 2012 +0000
+++ b/bin/sh/var.c      Wed Mar 28 20:11:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.40 2011/06/18 21:18:46 christos Exp $        */
+/*     $NetBSD: var.c,v 1.41 2012/03/28 20:11:25 christos Exp $        */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: var.c,v 1.40 2011/06/18 21:18:46 christos Exp $");
+__RCSID("$NetBSD: var.c,v 1.41 2012/03/28 20:11:25 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -45,6 +45,7 @@
 #include <stdlib.h>
 #include <strings.h>
 #include <paths.h>
+#include <limits.h>
 
 /*
  * Shell variables.



Home | Main Index | Thread Index | Old Index