Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Use unsigned char for ctype functions, suggested by ...
details: https://anonhg.NetBSD.org/src/rev/91272e177986
branches: trunk
changeset: 355018:91272e177986
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jul 08 19:25:37 2017 +0000
description:
Use unsigned char for ctype functions, suggested by christos
diffstat:
sys/dev/led.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r b262d4cc8cab -r 91272e177986 sys/dev/led.c
--- a/sys/dev/led.c Sat Jul 08 18:38:57 2017 +0000
+++ b/sys/dev/led.c Sat Jul 08 19:25:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: led.c,v 1.1 2017/07/08 00:54:37 jmcneill Exp $ */
+/* $NetBSD: led.c,v 1.2 2017/07/08 19:25:37 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: led.c,v 1.1 2017/07/08 00:54:37 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: led.c,v 1.2 2017/07/08 19:25:37 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -79,9 +79,9 @@
static void
led_normalize_name(char *name)
{
- char *p;
+ unsigned char *p;
- for (p = name; *p; p++)
+ for (p = (unsigned char *)name; *p; p++)
if (!isalpha(*p) && !isdigit(*p) && *p != '-' && *p != '_')
*p = '_';
}
Home |
Main Index |
Thread Index |
Old Index