diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2015-02-05 20:53:33 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2015-02-05 20:53:33 +0000 |
| commit | f7cba3a80d9ebefc57776fffd17a4ae68f72e494 (patch) | |
| tree | dc1c5074828f0c5fafe2fb8f5599339dfdc5bc97 /libntp/atolfp.c | |
| parent | 44a728f815af203cd7a91db83b06325818433463 (diff) | |
Notes
Diffstat (limited to 'libntp/atolfp.c')
| -rw-r--r-- | libntp/atolfp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libntp/atolfp.c b/libntp/atolfp.c index 4afeb23d33aa9..3a65f6bcb2f7c 100644 --- a/libntp/atolfp.c +++ b/libntp/atolfp.c @@ -52,7 +52,7 @@ atolfp( * * [spaces][-|+][digits][.][digits][spaces|\n|\0] */ - while (isspace((int)*cp)) + while (isspace((unsigned char)*cp)) cp++; if (*cp == '-') { @@ -63,7 +63,7 @@ atolfp( if (*cp == '+') cp++; - if (*cp != '.' && !isdigit((int)*cp)) + if (*cp != '.' && !isdigit((unsigned char)*cp)) return 0; while (*cp != '\0' && (ind = strchr(digits, *cp)) != NULL) { @@ -72,7 +72,7 @@ atolfp( cp++; } - if (*cp != '\0' && !isspace((int)*cp)) { + if (*cp != '\0' && !isspace((unsigned char)*cp)) { if (*cp++ != '.') return 0; @@ -84,10 +84,10 @@ atolfp( cp++; } - while (isdigit((int)*cp)) + while (isdigit((unsigned char)*cp)) cp++; - if (*cp != '\0' && !isspace((int)*cp)) + if (*cp != '\0' && !isspace((unsigned char)*cp)) return 0; } |
