Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/libopts (unsigned char) for ctype func...
details: https://anonhg.NetBSD.org/src/rev/15200a7324f5
branches: trunk
changeset: 749970:15200a7324f5
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 13 23:25:40 2009 +0000
description:
(unsigned char) for ctype functions.
diffstat:
external/bsd/ntp/dist/libopts/makeshell.c | 14 +++++++-------
external/bsd/ntp/dist/libopts/version.c | 4 ++--
2 files changed, 9 insertions(+), 9 deletions(-)
diffs (67 lines):
diff -r 1c109ad6c1a5 -r 15200a7324f5 external/bsd/ntp/dist/libopts/makeshell.c
--- a/external/bsd/ntp/dist/libopts/makeshell.c Sun Dec 13 23:25:24 2009 +0000
+++ b/external/bsd/ntp/dist/libopts/makeshell.c Sun Dec 13 23:25:40 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makeshell.c,v 1.1.1.1 2009/12/13 16:55:08 kardel Exp $ */
+/* $NetBSD: makeshell.c,v 1.2 2009/12/13 23:25:40 christos Exp $ */
/*
@@ -617,7 +617,7 @@
char* pzPN = zTimeBuf;
tCC* pz = pOpts->pzPROGNAME;
for (;;) {
- if ((*pzPN++ = tolower( *pz++ )) == '\0')
+ if ((*pzPN++ = tolower( (unsigned char)*pz++ )) == '\0')
break;
}
}
@@ -833,8 +833,8 @@
* They must not be the same. They cannot be, because it would
* not compile correctly if they were.
*/
- while ( toupper( pOD->pz_Name[matchCt] )
- == toupper( pzMatchName[matchCt] ))
+ while ( toupper( (unsigned char)pOD->pz_Name[matchCt] )
+ == toupper( (unsigned char)pzMatchName[matchCt] ))
matchCt++;
if (matchCt > min)
@@ -845,8 +845,8 @@
*/
if (pOD->pz_DisableName != NULL) {
matchCt = 0;
- while ( toupper( pOD->pz_DisableName[matchCt] )
- == toupper( pzMatchName[matchCt] ))
+ while ( toupper( (unsigned char)pOD->pz_DisableName[matchCt] )
+ == toupper( (unsigned char)pzMatchName[matchCt] ))
matchCt++;
if (matchCt > min)
min = matchCt;
@@ -1060,7 +1060,7 @@
AGDUPSTR( pz, pShellParseOptions->pzPROGNAME, "program name" );
pShellParseOptions->pzProgName = pz;
while (*pz != NUL) {
- *pz = tolower( *pz );
+ *pz = tolower( (unsigned char)*pz );
pz++;
}
}
diff -r 1c109ad6c1a5 -r 15200a7324f5 external/bsd/ntp/dist/libopts/version.c
--- a/external/bsd/ntp/dist/libopts/version.c Sun Dec 13 23:25:24 2009 +0000
+++ b/external/bsd/ntp/dist/libopts/version.c Sun Dec 13 23:25:40 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: version.c,v 1.1.1.1 2009/12/13 16:55:15 kardel Exp $ */
+/* $NetBSD: version.c,v 1.2 2009/12/13 23:25:40 christos Exp $ */
/* Id: e21e2bf9958c54e440efbdc7c1026e46ac589f66
@@ -67,7 +67,7 @@
if ( ((pOD->fOptState & OPTST_ARG_OPTIONAL) == 0)
|| (pOD->optArg.argString == NULL))
swCh = 'v';
- else swCh = tolower(pOD->optArg.argString[0]);
+ else swCh = tolower((unsigned char)pOD->optArg.argString[0]);
if (pOpts->pzFullVersion != NULL) {
fputs( pOpts->pzFullVersion, fp );
Home |
Main Index |
Thread Index |
Old Index