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/mstolfp.c | |
| parent | 44a728f815af203cd7a91db83b06325818433463 (diff) | |
Diffstat (limited to 'libntp/mstolfp.c')
| -rw-r--r-- | libntp/mstolfp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libntp/mstolfp.c b/libntp/mstolfp.c index 1a1a02b5fc463..828b14cfbca87 100644 --- a/libntp/mstolfp.c +++ b/libntp/mstolfp.c @@ -32,7 +32,7 @@ mstolfp( */ bp = buf; cp = str; - while (isspace((int)*cp)) + while (isspace((unsigned char)*cp)) cp++; if (*cp == '-') { @@ -40,7 +40,7 @@ mstolfp( cp++; } - if (*cp != '.' && !isdigit((int)*cp)) + if (*cp != '.' && !isdigit((unsigned char)*cp)) return 0; @@ -48,7 +48,7 @@ mstolfp( * Search forward for the decimal point or the end of the string. */ cpdec = cp; - while (isdigit((int)*cpdec)) + while (isdigit((unsigned char)*cpdec)) cpdec++; /* @@ -86,7 +86,7 @@ mstolfp( if (*cp == '.') { cp++; - while (isdigit((int)*cp)) + while (isdigit((unsigned char)*cp)) *bp++ = (char)*cp++; } *bp = '\0'; @@ -95,7 +95,7 @@ mstolfp( * Check to make sure the string is properly terminated. If * so, give the buffer to the decoding routine. */ - if (*cp != '\0' && !isspace((int)*cp)) + if (*cp != '\0' && !isspace((unsigned char)*cp)) return 0; return atolfp(buf, lfp); } |
