Add (unsigned char) cast to ctype functions
This commit is contained in:
parent
48cdfe10a9
commit
0e378e4772
@ -26,7 +26,7 @@
|
||||
#include "uucp.h"
|
||||
|
||||
#if USE_RCS_ID
|
||||
const char cu_rcsid[] = "$Id: cu.c,v 1.8 2003/01/21 22:47:20 is Exp $";
|
||||
const char cu_rcsid[] = "$Id: cu.c,v 1.9 2004/11/05 20:37:28 dsl Exp $";
|
||||
#endif
|
||||
|
||||
#include "cu.h"
|
||||
@ -1050,7 +1050,7 @@ fcudo_cmd (puuconf, qconn, bcmd)
|
||||
switch (bcmd)
|
||||
{
|
||||
default:
|
||||
if (! isprint (*zCuvar_escape))
|
||||
if (! isprint ((unsigned char)*zCuvar_escape))
|
||||
sprintf (abescape, "\\%03o", BUCHAR (*zCuvar_escape));
|
||||
else
|
||||
{
|
||||
@ -1148,7 +1148,7 @@ fcudo_cmd (puuconf, qconn, bcmd)
|
||||
return TRUE;
|
||||
|
||||
case '?':
|
||||
if (! isprint (*zCuvar_escape))
|
||||
if (! isprint ((unsigned char)*zCuvar_escape))
|
||||
sprintf (abescape, "\\%03o", BUCHAR (*zCuvar_escape));
|
||||
else
|
||||
{
|
||||
@ -1285,7 +1285,7 @@ icuunrecogvar (puuconf, argc, argv, pvar, pinfo)
|
||||
{
|
||||
char abescape[5];
|
||||
|
||||
if (! isprint (*zCuvar_escape))
|
||||
if (! isprint ((unsigned char)*zCuvar_escape))
|
||||
sprintf (abescape, "\\%03o", BUCHAR (*zCuvar_escape));
|
||||
else
|
||||
{
|
||||
@ -1339,7 +1339,7 @@ uculist_vars ()
|
||||
{
|
||||
int cchar;
|
||||
|
||||
if (! isprint (*z))
|
||||
if (! isprint ((unsigned char)*z))
|
||||
{
|
||||
sprintf (abchar, "\\%03o", BUCHAR (*z));
|
||||
cchar = 4;
|
||||
@ -1452,7 +1452,7 @@ icuunrecogfn (puuconf, argc, argv, pvar, pinfo)
|
||||
{
|
||||
char abescape[5];
|
||||
|
||||
if (! isprint (*zCuvar_escape))
|
||||
if (! isprint ((unsigned char)*zCuvar_escape))
|
||||
sprintf (abescape, "\\%03o", BUCHAR (*zCuvar_escape));
|
||||
else
|
||||
{
|
||||
@ -2086,7 +2086,7 @@ fcusend_buf (qconn, zbufarg, cbufarg)
|
||||
fnl = FALSE;
|
||||
for (i = 0, zget = zbuf; i < csend; i++, zget++)
|
||||
{
|
||||
if (isprint (*zget)
|
||||
if (isprint ((unsigned char)*zget)
|
||||
|| *zget == '\t')
|
||||
*zput++ = *zget;
|
||||
else if (*zget == '\n')
|
||||
@ -2138,7 +2138,7 @@ fcusend_buf (qconn, zbufarg, cbufarg)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (! fCuvar_echocheck || ! isprint (*zget))
|
||||
if (! fCuvar_echocheck || ! isprint ((unsigned char)*zget))
|
||||
continue;
|
||||
bwant = *zget;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "uucp.h"
|
||||
|
||||
#if USE_RCS_ID
|
||||
const char protf_rcsid[] = "$Id: protf.c,v 1.4 1998/04/17 23:39:29 ross Exp $";
|
||||
const char protf_rcsid[] = "$Id: protf.c,v 1.5 2004/11/05 20:37:28 dsl Exp $";
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
@ -749,10 +749,10 @@ ffawait_cksum (qtrans, qdaemon, zdata, cdata)
|
||||
|
||||
qtrans->precfn = NULL;
|
||||
|
||||
if (! isxdigit (zdata[0])
|
||||
|| ! isxdigit (zdata[1])
|
||||
|| ! isxdigit (zdata[2])
|
||||
|| ! isxdigit (zdata[3])
|
||||
if (! isxdigit ((unsigned char)zdata[0])
|
||||
|| ! isxdigit ((unsigned char)zdata[1])
|
||||
|| ! isxdigit ((unsigned char)zdata[2])
|
||||
|| ! isxdigit ((unsigned char)zdata[3])
|
||||
|| zdata[4] != '\0')
|
||||
{
|
||||
ulog (LOG_ERROR, "Bad checksum format");
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "uucp.h"
|
||||
|
||||
#if USE_RCS_ID
|
||||
const char uucico_rcsid[] = "$Id: uucico.c,v 1.4 2002/07/10 23:16:33 wiz Exp $";
|
||||
const char uucico_rcsid[] = "$Id: uucico.c,v 1.5 2004/11/05 20:37:28 dsl Exp $";
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
@ -1436,7 +1436,7 @@ fdo_call (qdaemon, qstat, qdialer, pfcalled, pterr)
|
||||
char *zend;
|
||||
|
||||
b = *zopt++;
|
||||
if (isspace (b) || b != '-')
|
||||
if (isspace ((unsigned char)b) || b != '-')
|
||||
continue;
|
||||
switch (*zopt)
|
||||
{
|
||||
@ -1452,7 +1452,7 @@ fdo_call (qdaemon, qstat, qdialer, pfcalled, pterr)
|
||||
zopt = zend;
|
||||
break;
|
||||
}
|
||||
while (*zopt != '\0' && ! isspace (*zopt))
|
||||
while (*zopt != '\0' && ! isspace ((unsigned char)*zopt))
|
||||
++zopt;
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "uucp.h"
|
||||
|
||||
#if USE_RCS_ID
|
||||
const char uulog_rcsid[] = "$Id: uulog.c,v 1.3 1995/08/24 05:23:22 jtc Exp $";
|
||||
const char uulog_rcsid[] = "$Id: uulog.c,v 1.4 2004/11/05 20:37:28 dsl Exp $";
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
@ -107,7 +107,7 @@ main (argc, argv)
|
||||
passing the arguments to getopt. */
|
||||
for (i = 0; i < argc; i++)
|
||||
{
|
||||
if (argv[i][0] == '-' && isdigit (argv[i][1]))
|
||||
if (argv[i][0] == '-' && isdigit ((unsigned char)argv[i][1]))
|
||||
{
|
||||
size_t clen;
|
||||
char *znew;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vmstat.c,v 1.123 2004/10/15 21:29:03 enami Exp $ */
|
||||
/* $NetBSD: vmstat.c,v 1.124 2004/11/05 19:56:34 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -77,7 +77,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1986, 1991, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: vmstat.c,v 1.123 2004/10/15 21:29:03 enami Exp $");
|
||||
__RCSID("$NetBSD: vmstat.c,v 1.124 2004/11/05 19:56:34 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -477,7 +477,7 @@ choosedrives(char **argv)
|
||||
#define BACKWARD_COMPATIBILITY
|
||||
for (ndrives = 0; *argv; ++argv) {
|
||||
#ifdef BACKWARD_COMPATIBILITY
|
||||
if (isdigit(**argv))
|
||||
if (isdigit((unsigned char)**argv))
|
||||
break;
|
||||
#endif
|
||||
for (i = 0; i < dk_ndrive; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user