Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tip Make xgetchar() return an int like getchar() doe...
details: https://anonhg.NetBSD.org/src/rev/56d5f5f25739
branches: trunk
changeset: 997237:56d5f5f25739
user: gson <gson%NetBSD.org@localhost>
date: Thu Feb 28 17:41:27 2019 +0000
description:
Make xgetchar() return an int like getchar() does, and remove needless cast.
diffstat:
usr.bin/tip/tip.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 7965cb540bf8 -r 56d5f5f25739 usr.bin/tip/tip.c
--- a/usr.bin/tip/tip.c Thu Feb 28 17:40:06 2019 +0000
+++ b/usr.bin/tip/tip.c Thu Feb 28 17:41:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tip.c,v 1.61 2019/02/22 22:25:22 uwe Exp $ */
+/* $NetBSD: tip.c,v 1.62 2019/02/28 17:41:27 gson Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: tip.c,v 1.61 2019/02/22 22:25:22 uwe Exp $");
+__RCSID("$NetBSD: tip.c,v 1.62 2019/02/28 17:41:27 gson Exp $");
#endif /* not lint */
/*
@@ -332,7 +332,7 @@
/*
* getchar() wrapper that checks for EOF on the local end.
*/
-static char
+static int
xgetchar(void)
{
int c = getchar();
@@ -341,7 +341,7 @@
/* NOTREACHED */
}
- return (char)c & STRIP_PAR;
+ return c & STRIP_PAR;
}
Home |
Main Index |
Thread Index |
Old Index