Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterm const castaways.
details: https://anonhg.NetBSD.org/src/rev/731e9e864192
branches: trunk
changeset: 501705:731e9e864192
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 05 23:02:00 2001 +0000
description:
const castaways.
diffstat:
lib/libterm/tputs.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r d57084ca614e -r 731e9e864192 lib/libterm/tputs.c
--- a/lib/libterm/tputs.c Fri Jan 05 22:57:56 2001 +0000
+++ b/lib/libterm/tputs.c Fri Jan 05 23:02:00 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tputs.c,v 1.16 2000/07/14 05:26:04 itohy Exp $ */
+/* $NetBSD: tputs.c,v 1.17 2001/01/05 23:02:00 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tputs.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: tputs.c,v 1.16 2000/07/14 05:26:04 itohy Exp $");
+__RCSID("$NetBSD: tputs.c,v 1.17 2001/01/05 23:02:00 christos Exp $");
#endif
#endif /* not lint */
@@ -75,20 +75,20 @@
/*
* Convert the number representing the delay.
*/
- if (isdigit(*(unsigned char *)(*ptr))) {
+ if (isdigit(*(const unsigned char *)(*ptr))) {
do
i = i * 10 + *(*ptr)++ - '0';
- while (isdigit(*(unsigned char *)(*ptr)));
+ while (isdigit(*(const unsigned char *)(*ptr)));
}
i *= 10;
if (*(*ptr) == '.') {
(*ptr)++;
- if (isdigit(*(unsigned char *)(*ptr)))
+ if (isdigit(*(const unsigned char *)(*ptr)))
i += *(*ptr) - '0';
/*
* Only one digit to the right of the decimal point.
*/
- while (isdigit(*(unsigned char *)(*ptr)))
+ while (isdigit(*(const unsigned char *)(*ptr)))
(*ptr)++;
}
Home |
Main Index |
Thread Index |
Old Index