1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Cast ctype functions' argument to unsigned char.

ok guenther@
This commit is contained in:
mmcc 2015-10-24 18:16:40 +00:00
parent 037a1c83c4
commit 4f56e6a4e1
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: dr_1.c,v 1.6 2009/10/27 23:59:27 deraadt Exp $ */
/* $OpenBSD: dr_1.c,v 1.7 2015/10/24 18:16:40 mmcc Exp $ */
/* $NetBSD: dr_1.c,v 1.4 1995/04/24 12:25:10 cgd Exp $ */
/*
@ -417,8 +417,8 @@ next()
if (tp == 0)
p = "Driver";
else {
if (islower(*tp))
*tp = toupper(*tp);
if (islower((unsigned char)*tp))
*tp = toupper((unsigned char)*tp);
p = tp;
}
(void) strncpy(bestship->file->captain, p,

View File

@ -1,4 +1,4 @@
/* $OpenBSD: misc.c,v 1.6 2014/11/16 04:49:48 guenther Exp $ */
/* $OpenBSD: misc.c,v 1.7 2015/10/24 18:16:40 mmcc Exp $ */
/* $NetBSD: misc.c,v 1.3 1995/04/22 10:37:03 cgd Exp $ */
/*
@ -182,7 +182,7 @@ colours(sp)
if (sp->file->sink)
flag = '~';
flag = *countryname[capship(sp)->nationality];
return sp->file->FS ? flag : tolower(flag);
return sp->file->FS ? flag : tolower((unsigned char)flag);
}
void