summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/lib/atolfp.c
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:57:47 +0000
commit4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (patch)
tree15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/xntpd/lib/atolfp.c
parent30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff)
downloadFreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip
FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz
Remove trailing whitespace.
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