Module Name: src
Committed By: rillig
Date: Wed Aug 25 22:52:26 UTC 2021
Modified Files:
src/usr.bin/btkey: btkey.c
Log Message:
btkey: fix lint warning about wrong call to tolower
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/btkey/btkey.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/btkey/btkey.c
diff -u src/usr.bin/btkey/btkey.c:1.4 src/usr.bin/btkey/btkey.c:1.5
--- src/usr.bin/btkey/btkey.c:1.4 Mon Aug 29 14:24:03 2011
+++ src/usr.bin/btkey/btkey.c Wed Aug 25 22:52:25 2021
@@ -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 @@ scan_key(const char *arg)
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;