aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/libntp/dofptoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/dofptoa.c')
-rw-r--r--contrib/ntp/libntp/dofptoa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/ntp/libntp/dofptoa.c b/contrib/ntp/libntp/dofptoa.c
index 758af2fd7f9f..c21d1455e7f0 100644
--- a/contrib/ntp/libntp/dofptoa.c
+++ b/contrib/ntp/libntp/dofptoa.c
@@ -12,7 +12,7 @@
char *
dofptoa(
u_fp fpv,
- int neg,
+ char sign,
short ndec,
int msec
)
@@ -106,8 +106,8 @@ dofptoa(
* Copy it into the buffer, asciizing as we go.
*/
bp = buf;
- if (neg)
- *bp++ = '-';
+ if (sign)
+ *bp++ = sign;
while (cp < cpend) {
if (cp == cpdec)
@@ -135,7 +135,7 @@ fptoa(
plusfp = (u_fp)fpv;
}
- return dofptoa(plusfp, neg, ndec, FALSE);
+ return dofptoa(plusfp, (neg?'-':0), ndec, FALSE);
}
@@ -155,5 +155,5 @@ fptoms(
plusfp = (u_fp)fpv;
}
- return dofptoa(plusfp, neg, ndec, TRUE);
+ return dofptoa(plusfp, (neg?'-':0), ndec, TRUE);
}