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/3119fe55b0db
branches:  trunk
changeset: 458847:3119fe55b0db
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 f0a7385dd714 -r 3119fe55b0db 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