summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-08-31 21:49:41 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2009-08-31 21:49:41 +1000
commita5cdd4e62b0b29c5dfe69e4f2183c11dde6f5054 (patch)
tree61ced6f3b7cbaac8a6caced98d0573ef99cf4e95
parent[BUILTIN] Add another missing LC_COLLATE to mkbuiltins (diff)
downloaddash-a5cdd4e62b0b29c5dfe69e4f2183c11dde6f5054.tar.gz
dash-a5cdd4e62b0b29c5dfe69e4f2183c11dde6f5054.zip
[BUILTIN] Avoid compiler warnings on isdigit
Pass correct type to ctype macro.

Signed-off-by: Eric Blake <ebb9@byu.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--ChangeLog4
-rw-r--r--src/miscbltin.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a726af4..cb08ae5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-31  Eric Blake <ebb9@byu.net>
+
+	* Avoid compiler warnings on isdigit.
+
 2009-08-31  Matthew Burgess <matthew@linuxfromscratch.org>
 
 	* Add another missing LC_COLLATE to mkbuiltins.
diff --git a/src/miscbltin.c b/src/miscbltin.c
index be746b2..ec9872d 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -237,7 +237,7 @@ umaskcmd(int argc, char **argv)
 	} else {
 		int new_mask;
 
-		if (isdigit(*ap)) {
+		if (isdigit((unsigned char) *ap)) {
 			new_mask = 0;
 			do {
 				if (*ap >= '8' || *ap < '0')
-0400'>2024-07-08Add photos from July 3, the hikeJune McEnroe 2024-07-07Add photos from July 1June McEnroe 2024-07-07Add photos from June 25-30June McEnroe 2024-06-30Add photos from June 22 (and the few days after that)June McEnroe 2024-06-30Accommodate lower-case .jpg filesJune McEnroe 2024-06-23Add another BACKXWASH showJune McEnroe It was good! 2024-06-16Update bioJune McEnroe 2024-06-15Add photo descriptions from June 12June McEnroe 2024-06-10Add first roll of film from June 8June McEnroe 2024-06-10Cope with not having an EXIF infoJune McEnroe 2024-06-10Resize using target pixel counts for consistencyJune McEnroe This will resize film scans to about the same size as for the digital photos. 2024-06-10Add The Girl Who Was Convinced...June McEnroe Not much there. The illustrations are very nice though. 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe