Source-Changes-HG archive

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

[src/netbsd-1-6]: src/bin/sh Pull up revision 1.25 (requested by mycroft in t...



details:   https://anonhg.NetBSD.org/src/rev/891c8589c116
branches:  netbsd-1-6
changeset: 527670:891c8589c116
user:      tv <tv%NetBSD.org@localhost>
date:      Fri May 31 16:42:05 2002 +0000

description:
Pull up revision 1.25 (requested by mycroft in ticket #110):
deal with char c; c != -129 warning. Hi jason!

diffstat:

 bin/sh/mksyntax.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r b7f4057b6d6e -r 891c8589c116 bin/sh/mksyntax.c
--- a/bin/sh/mksyntax.c Fri May 31 16:21:28 2002 +0000
+++ b/bin/sh/mksyntax.c Fri May 31 16:42:05 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mksyntax.c,v 1.24 2002/02/12 20:32:35 christos Exp $   */
+/*     $NetBSD: mksyntax.c,v 1.24.4.1 2002/05/31 16:42:05 tv Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -47,7 +47,7 @@
 static char sccsid[] = "@(#)mksyntax.c 8.2 (Berkeley) 5/4/95";
 #else
 static const char rcsid[] =
-    "$NetBSD: mksyntax.c,v 1.24 2002/02/12 20:32:35 christos Exp $";
+    "$NetBSD: mksyntax.c,v 1.24.4.1 2002/05/31 16:42:05 tv Exp $";
 #endif
 #endif /* not lint */
 
@@ -202,9 +202,9 @@
        fprintf(hfile, "#define SYNBASE %d\n", base);
        fprintf(hfile, "#define PEOF %d\n\n", -base);
        if (sign)
-               fprintf(hfile, "#define UPEOF %d\n\n", -base);
+               fprintf(hfile, "#define UPEOF ((char)%d)\n\n", -base);
        else
-               fprintf(hfile, "#define UPEOF ((unsigned char) %d)\n\n", -base);
+               fprintf(hfile, "#define UPEOF ((unsigned char)%d)\n\n", -base);
        putc('\n', hfile);
        fputs("#define BASESYNTAX (basesyntax + SYNBASE)\n", hfile);
        fputs("#define DQSYNTAX (dqsyntax + SYNBASE)\n", hfile);



Home | Main Index | Thread Index | Old Index