Module Name:    src
Committed By:   christos
Date:           Sun Dec 13 23:25:40 UTC 2009

Modified Files:
        src/external/bsd/ntp/dist/libopts: makeshell.c version.c

Log Message:
(unsigned char) for ctype functions.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/ntp/dist/libopts/makeshell.c \
    src/external/bsd/ntp/dist/libopts/version.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ntp/dist/libopts/makeshell.c
diff -u src/external/bsd/ntp/dist/libopts/makeshell.c:1.1.1.1 src/external/bsd/ntp/dist/libopts/makeshell.c:1.2
--- src/external/bsd/ntp/dist/libopts/makeshell.c:1.1.1.1	Sun Dec 13 11:55:08 2009
+++ src/external/bsd/ntp/dist/libopts/makeshell.c	Sun Dec 13 18:25:40 2009
@@ -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++;
         }
     }
Index: src/external/bsd/ntp/dist/libopts/version.c
diff -u src/external/bsd/ntp/dist/libopts/version.c:1.1.1.1 src/external/bsd/ntp/dist/libopts/version.c:1.2
--- src/external/bsd/ntp/dist/libopts/version.c:1.1.1.1	Sun Dec 13 11:55:15 2009
+++ src/external/bsd/ntp/dist/libopts/version.c	Sun Dec 13 18:25:40 2009
@@ -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 );

Reply via email to