Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/m4 Fix appearance of bogus 0xff at EOF reported by m...



details:   https://anonhg.NetBSD.org/src/rev/2b8918b06540
branches:  trunk
changeset: 506824:2b8918b06540
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Mar 05 20:19:54 2001 +0000

description:
Fix appearance of bogus 0xff at EOF reported by me in bin/12287.

diffstat:

 usr.bin/m4/main.c |  6 +++---
 usr.bin/m4/misc.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 14c763e5a14b -r 2b8918b06540 usr.bin/m4/main.c
--- a/usr.bin/m4/main.c Mon Mar 05 18:24:58 2001 +0000
+++ b/usr.bin/m4/main.c Mon Mar 05 20:19:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.24 2000/10/18 17:23:18 jdolecek Exp $       */
+/*     $NetBSD: main.c,v 1.25 2001/03/05 20:19:54 wiz Exp $    */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.24 2000/10/18 17:23:18 jdolecek Exp $");
+__RCSID("$NetBSD: main.c,v 1.25 2001/03/05 20:19:54 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -462,7 +462,7 @@
 inspect(tp)
        char *tp;
 {
-       char c;
+       int c;
        char *name = tp;
        char *etp = tp+MAXTOK;
        ndptr p;
diff -r 14c763e5a14b -r 2b8918b06540 usr.bin/m4/misc.c
--- a/usr.bin/m4/misc.c Mon Mar 05 18:24:58 2001 +0000
+++ b/usr.bin/m4/misc.c Mon Mar 05 20:19:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.10 2000/05/08 00:52:18 tv Exp $     */
+/*     $NetBSD: misc.c,v 1.11 2001/03/05 20:19:54 wiz Exp $    */
 
 /*
  * Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)misc.c     8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: misc.c,v 1.10 2000/05/08 00:52:18 tv Exp $");
+__RCSID("$NetBSD: misc.c,v 1.11 2001/03/05 20:19:54 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -78,7 +78,7 @@
  */
 void
 putback(c)
-       unsigned char c;
+       int c;
 {
        if (bp < endpbb)
                *bp++ = c;



Home | Main Index | Thread Index | Old Index