summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/lib/atolfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/lib/atolfp.c')
-rw-r--r--usr.sbin/xntpd/lib/atolfp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/xntpd/lib/atolfp.c b/usr.sbin/xntpd/lib/atolfp.c
index 649303e..644a38c 100644
--- a/usr.sbin/xntpd/lib/atolfp.c
+++ b/usr.sbin/xntpd/lib/atolfp.c
@@ -49,12 +49,12 @@ atolfp(str, lfp)
*/
while (isspace(*cp))
cp++;
-
+
if (*cp == '-') {
cp++;
isneg = 1;
}
-
+
if (*cp == '+')
cp++;
@@ -70,7 +70,7 @@ atolfp(str, lfp)
if (*cp != '\0' && !isspace(*cp)) {
if (*cp++ != '.')
return 0;
-
+
while (ndec < 9 && *cp != '\0'
&& (ind = strchr(digits, *cp)) != NULL) {
ndec++;
@@ -81,7 +81,7 @@ atolfp(str, lfp)
while (isdigit(*cp))
cp++;
-
+
if (*cp != '\0' && !isspace(*cp))
return 0;
}
@@ -110,7 +110,7 @@ atolfp(str, lfp)
if (isneg)
M_NEG(dec_i, dec_f);
-
+
lfp->l_ui = dec_i;
lfp->l_uf = dec_f;
return 1;
OpenPOWER on IntegriCloud