Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/libhack use unsigned char to prevent sign exte...
details: https://anonhg.NetBSD.org/src/rev/824f7eb66b7e
branches: trunk
changeset: 463215:824f7eb66b7e
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 13 08:48:07 2019 +0000
description:
use unsigned char to prevent sign extension.
diffstat:
distrib/utils/libhack/strcasecmp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9f7c3e8af59f -r 824f7eb66b7e distrib/utils/libhack/strcasecmp.c
--- a/distrib/utils/libhack/strcasecmp.c Tue Aug 13 08:27:42 2019 +0000
+++ b/distrib/utils/libhack/strcasecmp.c Tue Aug 13 08:48:07 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strcasecmp.c,v 1.2 2019/08/12 09:34:53 martin Exp $ */
+/* $NetBSD: strcasecmp.c,v 1.3 2019/08/13 08:48:07 christos Exp $ */
/*
* Written by Martin Husemann <martin%NetBSD.org@localhost>
@@ -13,7 +13,7 @@
int
strcasecmp(const char *s1, const char *s2)
{
- unsigned int c1, c2;
+ unsigned char c1, c2;
do {
c1 = *s1++;
Home |
Main Index |
Thread Index |
Old Index