diff options
author | ache <ache@FreeBSD.org> | 2005-01-21 13:31:02 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2005-01-21 13:31:02 +0000 |
commit | 5c490b063a95e43c88f035f4c0c4cc083dca396c (patch) | |
tree | 6e0bf54e50b5b0faef9e1a626bded3f45f932aba | |
parent | fe3627f1e05165011a885b6df53e089081fcdb5e (diff) | |
download | FreeBSD-src-5c490b063a95e43c88f035f4c0c4cc083dca396c.zip FreeBSD-src-5c490b063a95e43c88f035f4c0c4cc083dca396c.tar.gz |
Whitespace/style tweaking of prev. commit.
Noted by: bde
-rw-r--r-- | lib/libc/stdlib/strtoimax.c | 7 | ||||
-rw-r--r-- | lib/libc/stdlib/strtol.c | 7 | ||||
-rw-r--r-- | lib/libc/stdlib/strtoll.c | 7 | ||||
-rw-r--r-- | lib/libc/stdlib/strtoul.c | 7 | ||||
-rw-r--r-- | lib/libc/stdlib/strtoull.c | 7 | ||||
-rw-r--r-- | lib/libc/stdlib/strtoumax.c | 7 |
6 files changed, 18 insertions, 24 deletions
diff --git a/lib/libc/stdlib/strtoimax.c b/lib/libc/stdlib/strtoimax.c index 147fce2..46ef2ba 100644 --- a/lib/libc/stdlib/strtoimax.c +++ b/lib/libc/stdlib/strtoimax.c @@ -76,10 +76,9 @@ strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && - ((s[1] >= 'a' && s[1] <= 'f') || - (s[1] >= 'A' && s[1] <= 'F') || - (s[1] >= '0' && s[1] <= '9')) - ) { + ((s[1] >= '0' && s[1] <= '9') || + (s[1] >= 'A' && s[1] <= 'F') || + (s[1] >= 'a' && s[1] <= 'f'))) { c = s[1]; s += 2; base = 16; diff --git a/lib/libc/stdlib/strtol.c b/lib/libc/stdlib/strtol.c index 5aae7f9..1a6e818 100644 --- a/lib/libc/stdlib/strtol.c +++ b/lib/libc/stdlib/strtol.c @@ -77,10 +77,9 @@ strtol(const char * __restrict nptr, char ** __restrict endptr, int base) } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && - ((s[1] >= 'a' && s[1] <= 'f') || - (s[1] >= 'A' && s[1] <= 'F') || - (s[1] >= '0' && s[1] <= '9')) - ) { + ((s[1] >= '0' && s[1] <= '9') || + (s[1] >= 'A' && s[1] <= 'F') || + (s[1] >= 'a' && s[1] <= 'f'))) { c = s[1]; s += 2; base = 16; diff --git a/lib/libc/stdlib/strtoll.c b/lib/libc/stdlib/strtoll.c index 6cbe76a..f965892 100644 --- a/lib/libc/stdlib/strtoll.c +++ b/lib/libc/stdlib/strtoll.c @@ -76,10 +76,9 @@ strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && - ((s[1] >= 'a' && s[1] <= 'f') || - (s[1] >= 'A' && s[1] <= 'F') || - (s[1] >= '0' && s[1] <= '9')) - ) { + ((s[1] >= '0' && s[1] <= '9') || + (s[1] >= 'A' && s[1] <= 'F') || + (s[1] >= 'a' && s[1] <= 'f'))) { c = s[1]; s += 2; base = 16; diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c index a8e3736..8bcc2a4 100644 --- a/lib/libc/stdlib/strtoul.c +++ b/lib/libc/stdlib/strtoul.c @@ -74,10 +74,9 @@ strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && - ((s[1] >= 'a' && s[1] <= 'f') || - (s[1] >= 'A' && s[1] <= 'F') || - (s[1] >= '0' && s[1] <= '9')) - ) { + ((s[1] >= '0' && s[1] <= '9') || + (s[1] >= 'A' && s[1] <= 'F') || + (s[1] >= 'a' && s[1] <= 'f'))) { c = s[1]; s += 2; base = 16; diff --git a/lib/libc/stdlib/strtoull.c b/lib/libc/stdlib/strtoull.c index 0e80b0d..2a454b9 100644 --- a/lib/libc/stdlib/strtoull.c +++ b/lib/libc/stdlib/strtoull.c @@ -74,10 +74,9 @@ strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && - ((s[1] >= 'a' && s[1] <= 'f') || - (s[1] >= 'A' && s[1] <= 'F') || - (s[1] >= '0' && s[1] <= '9')) - ) { + ((s[1] >= '0' && s[1] <= '9') || + (s[1] >= 'A' && s[1] <= 'F') || + (s[1] >= 'a' && s[1] <= 'f'))) { c = s[1]; s += 2; base = 16; diff --git a/lib/libc/stdlib/strtoumax.c b/lib/libc/stdlib/strtoumax.c index 91d5d07..c81b9d1 100644 --- a/lib/libc/stdlib/strtoumax.c +++ b/lib/libc/stdlib/strtoumax.c @@ -74,10 +74,9 @@ strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) } if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && - ((s[1] >= 'a' && s[1] <= 'f') || - (s[1] >= 'A' && s[1] <= 'F') || - (s[1] >= '0' && s[1] <= '9')) - ) { + ((s[1] >= '0' && s[1] <= '9') || + (s[1] >= 'A' && s[1] <= 'F') || + (s[1] >= 'a' && s[1] <= 'f'))) { c = s[1]; s += 2; base = 16; |