Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst/arch/mac68k Add casts to unsigned char...
details: https://anonhg.NetBSD.org/src/rev/35e141f8faa3
branches: trunk
changeset: 571226:35e141f8faa3
user: he <he%NetBSD.org@localhost>
date: Sun Nov 14 13:34:53 2004 +0000
description:
Add casts to unsigned char for args to ctype functions.
diffstat:
distrib/utils/sysinst/arch/mac68k/md.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r a8b79095ac0a -r 35e141f8faa3 distrib/utils/sysinst/arch/mac68k/md.c
--- a/distrib/utils/sysinst/arch/mac68k/md.c Sun Nov 14 12:19:28 2004 +0000
+++ b/distrib/utils/sysinst/arch/mac68k/md.c Sun Nov 14 13:34:53 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.43 2004/08/14 16:06:41 dsl Exp $ */
+/* $NetBSD: md.c,v 1.44 2004/11/14 13:34:53 he Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -95,8 +95,8 @@
char c1, c2;
while (1) {
- c1 = tolower(*s1++);
- c2 = tolower(*s2++);
+ c1 = tolower((unsigned char)*s1++);
+ c2 = tolower((unsigned char)*s2++);
if (c1 < c2) return -1;
if (c1 > c2) return 1;
if (c1 == 0) return 0;
Home |
Main Index |
Thread Index |
Old Index