aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2007-07-20 01:27:50 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2007-07-20 01:27:50 +0000
commit660665be6b69e6ed3a823d9ce689c92d679d147c (patch)
tree0c5a008e7b446c2b76147761e7fed06ec3aef07c /usr.bin/tar
parent7061a01ba7eace50e99e255da134e089bc0834c1 (diff)
downloadsrc-660665be6b69e6ed3a823d9ce689c92d679d147c.tar.gz
src-660665be6b69e6ed3a823d9ce689c92d679d147c.zip
Fill in some casts that are needed (according to GCC 4.1)
Thanks to: Joerg Sonnenberger Approved by: re (hrs) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=171511
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/getdate.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tar/getdate.y b/usr.bin/tar/getdate.y
index 641afb080c09..16162c35424b 100644
--- a/usr.bin/tar/getdate.y
+++ b/usr.bin/tar/getdate.y
@@ -611,7 +611,7 @@ yylex(void)
char buff[64];
for ( ; ; ) {
- while (isspace(*yyInput))
+ while (isspace((unsigned char)*yyInput))
yyInput++;
/* Skip parenthesized comments. */
@@ -638,11 +638,11 @@ yylex(void)
/* Force to lowercase and strip '.' characters. */
while (*src != '\0'
- && (isalnum(*src) || *src == '.')
+ && (isalnum((unsigned char)*src) || *src == '.')
&& i < sizeof(buff)-1) {
if (*src != '.') {
- if (isupper(*src))
- buff[i++] = tolower(*src);
+ if (isupper((unsigned char)*src))
+ buff[i++] = tolower((unsigned char)*src);
else
buff[i++] = *src;
}
@@ -676,8 +676,8 @@ yylex(void)
* Because '-' and '+' have other special meanings, I
* don't deal with signed numbers here.
*/
- if (isdigit(c = *yyInput)) {
- for (yylval.Number = 0; isdigit(c = *yyInput++); )
+ if (isdigit((unsigned char)(c = *yyInput))) {
+ for (yylval.Number = 0; isdigit((unsigned char)(c = *yyInput++)); )
yylval.Number = 10 * yylval.Number + c - '0';
yyInput--;
return (tUNUMBER);