Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh deal with char c; c != -129 warning. Hi jason!
details: https://anonhg.NetBSD.org/src/rev/84758790b102
branches: trunk
changeset: 532109:84758790b102
user: christos <christos%NetBSD.org@localhost>
date: Fri May 31 16:18:48 2002 +0000
description:
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 5b95a98e167e -r 84758790b102 bin/sh/mksyntax.c
--- a/bin/sh/mksyntax.c Fri May 31 15:58:26 2002 +0000
+++ b/bin/sh/mksyntax.c Fri May 31 16:18:48 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.25 2002/05/31 16:18:48 christos 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.25 2002/05/31 16:18:48 christos 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