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/10a8924cfc91
branches:  trunk
changeset: 964704:10a8924cfc91
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 cf2416d8910e -r 10a8924cfc91 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