summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/mstolfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/mstolfp.c')
-rw-r--r--contrib/ntp/libntp/mstolfp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/ntp/libntp/mstolfp.c b/contrib/ntp/libntp/mstolfp.c
index 828b14c..7da20dc 100644
--- a/contrib/ntp/libntp/mstolfp.c
+++ b/contrib/ntp/libntp/mstolfp.c
@@ -70,8 +70,7 @@ mstolfp(
*/
*bp++ = '.';
if ((cpdec - cp) < 3) {
- register int i = 3 - (cpdec - cp);
-
+ size_t i = 3 - (cpdec - cp);
do {
*bp++ = '0';
} while (--i > 0);
OpenPOWER on IntegriCloud