Module Name:    src
Committed By:   christos
Date:           Wed Mar 28 20:11:25 UTC 2012

Modified Files:
        src/bin/sh: expand.c input.c parser.c syntax.c var.c

Log Message:
include <limits.h> for CHAR_MIN/CHAR_MAX


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/bin/sh/expand.c
cvs rdiff -u -r1.44 -r1.45 src/bin/sh/input.c
cvs rdiff -u -r1.81 -r1.82 src/bin/sh/parser.c
cvs rdiff -u -r1.2 -r1.3 src/bin/sh/syntax.c
cvs rdiff -u -r1.40 -r1.41 src/bin/sh/var.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/expand.c
diff -u src/bin/sh/expand.c:1.86 src/bin/sh/expand.c:1.87
--- src/bin/sh/expand.c:1.86	Wed Aug 31 12:24:54 2011
+++ src/bin/sh/expand.c	Wed Mar 28 16:11:25 2012
@@ -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 @@ __RCSID("$NetBSD: expand.c,v 1.86 2011/0
 #include <dirent.h>
 #include <unistd.h>
 #include <pwd.h>
+#include <limits.h>
 #include <stdlib.h>
 #include <stdio.h>
 

Index: src/bin/sh/input.c
diff -u src/bin/sh/input.c:1.44 src/bin/sh/input.c:1.45
--- src/bin/sh/input.c:1.44	Thu Feb 17 10:13:49 2011
+++ src/bin/sh/input.c	Wed Mar 28 16:11:25 2012
@@ -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 @@ __RCSID("$NetBSD: input.c,v 1.44 2011/02
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 

Index: src/bin/sh/parser.c
diff -u src/bin/sh/parser.c:1.81 src/bin/sh/parser.c:1.82
--- src/bin/sh/parser.c:1.81	Sun Mar 25 14:49:13 2012
+++ src/bin/sh/parser.c	Wed Mar 28 16:11:25 2012
@@ -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"

Index: src/bin/sh/syntax.c
diff -u src/bin/sh/syntax.c:1.2 src/bin/sh/syntax.c:1.3
--- src/bin/sh/syntax.c:1.2	Wed Dec 12 17:55:43 2007
+++ src/bin/sh/syntax.c	Wed Mar 28 16:11:25 2012
@@ -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"

Index: src/bin/sh/var.c
diff -u src/bin/sh/var.c:1.40 src/bin/sh/var.c:1.41
--- src/bin/sh/var.c:1.40	Sat Jun 18 17:18:46 2011
+++ src/bin/sh/var.c	Wed Mar 28 16:11:25 2012
@@ -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 @@ __RCSID("$NetBSD: var.c,v 1.40 2011/06/1
 #include <stdlib.h>
 #include <strings.h>
 #include <paths.h>
+#include <limits.h>
 
 /*
  * Shell variables.

Reply via email to