Module Name: src
Committed By: jakllsch
Date: Thu Mar 8 16:38:04 UTC 2012
Modified Files:
src/sys/dev/microcode/cyclades-z: cyzfirm2h.c
Log Message:
Cast arguments to ctype functions to unsigned char.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/microcode/cyclades-z/cyzfirm2h.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/microcode/cyclades-z/cyzfirm2h.c
diff -u src/sys/dev/microcode/cyclades-z/cyzfirm2h.c:1.7 src/sys/dev/microcode/cyclades-z/cyzfirm2h.c:1.8
--- src/sys/dev/microcode/cyclades-z/cyzfirm2h.c:1.7 Thu Mar 8 16:35:53 2012
+++ src/sys/dev/microcode/cyclades-z/cyzfirm2h.c Thu Mar 8 16:38:04 2012
@@ -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 @@ main(int argc, char *argv[])
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 @@ main(int argc, char *argv[])
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"