Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/btkey btkey: fix lint warning about wrong call to to...



details:   https://anonhg.NetBSD.org/src/rev/acdc22226ce4
branches:  trunk
changeset: 1023121:acdc22226ce4
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Aug 25 22:52:25 2021 +0000

description:
btkey: fix lint warning about wrong call to tolower

diffstat:

 usr.bin/btkey/btkey.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r f0bfa5da228c -r acdc22226ce4 usr.bin/btkey/btkey.c
--- a/usr.bin/btkey/btkey.c     Wed Aug 25 22:48:40 2021 +0000
+++ b/usr.bin/btkey/btkey.c     Wed Aug 25 22:52:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: btkey.c,v 1.4 2011/08/29 14:24:03 joerg Exp $  */
+/*     $NetBSD: btkey.c,v 1.5 2021/08/25 22:52:25 rillig Exp $ */
 
 /*-
  * Copyright (c) 2007 Iain Hibbert
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2007 Iain Hibbert.  All rights reserved.");
-__RCSID("$NetBSD: btkey.c,v 1.4 2011/08/29 14:24:03 joerg Exp $");
+__RCSID("$NetBSD: btkey.c,v 1.5 2021/08/25 22:52:25 rillig Exp $");
 
 #include <bluetooth.h>
 #include <ctype.h>
@@ -254,7 +254,9 @@
                        if (*arg == '\0')
                                return true;
 
-                       for (p = digits ; *p != tolower((int)*arg) ; p++)
+                       for (p = digits ;
+                           *p != tolower((unsigned char)*arg) ;
+                           p++)
                                if (*p == '\0')
                                        return false;
 



Home | Main Index | Thread Index | Old Index