Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/microcode/cyclades-z Cast arguments to ctype functio...
details: https://anonhg.NetBSD.org/src/rev/67202f155c8c
branches: trunk
changeset: 777870:67202f155c8c
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Mar 08 16:38:04 2012 +0000
description:
Cast arguments to ctype functions to unsigned char.
diffstat:
sys/dev/microcode/cyclades-z/cyzfirm2h.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r a4024f8d3d33 -r 67202f155c8c sys/dev/microcode/cyclades-z/cyzfirm2h.c
--- a/sys/dev/microcode/cyclades-z/cyzfirm2h.c Thu Mar 08 16:35:53 2012 +0000
+++ b/sys/dev/microcode/cyclades-z/cyzfirm2h.c Thu Mar 08 16:38:04 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cyzfirm2h.c,v 1.7 2012/03/08 16:35:53 jakllsch Exp $ */
+/* $NetBSD: cyzfirm2h.c,v 1.8 2012/03/08 16:38:04 jakllsch Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cyzfirm2h.c,v 1.7 2012/03/08 16:35:53 jakllsch Exp $");
+__RCSID("$NetBSD: cyzfirm2h.c,v 1.8 2012/03/08 16:38:04 jakllsch Exp $");
#include <sys/types.h>
#include <sys/mman.h>
@@ -83,8 +83,8 @@
err(1, "unable to allocate include name");
for (cp = include_name; *cp != '\0'; cp++) {
- if (isalpha(*cp))
- *cp = toupper(*cp);
+ if (isalpha((unsigned char)*cp))
+ *cp = toupper((unsigned char)*cp);
else if (*cp == '.')
*cp = '_';
}
@@ -99,7 +99,7 @@
err(1, "unable to mmap input file");
(void) close(i);
- fprintf(out_file, "/*\t$NetBSD: cyzfirm2h.c,v 1.7 2012/03/08 16:35:53 jakllsch Exp $\t*/\n\n");
+ fprintf(out_file, "/*\t$NetBSD: cyzfirm2h.c,v 1.8 2012/03/08 16:38:04 jakllsch Exp $\t*/\n\n");
fprintf(out_file,
"/*\n"
" * Firmware for Cyclades Z series multiport serial boards.\n"
Home |
Main Index |
Thread Index |
Old Index