diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-07-10 17:27:54 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-07-10 17:29:38 +0200 |
commit | 9fc5933b100694174071c7c4697c70095799bfd0 (patch) | |
tree | 01cacc6e2aca8ab4499f628aea6d23178f814f8e /networking | |
parent | 69d33db445964727b053068cfaa4d417767f8960 (diff) | |
download | busybox-w32-9fc5933b100694174071c7c4697c70095799bfd0.tar.gz busybox-w32-9fc5933b100694174071c7c4697c70095799bfd0.tar.bz2 busybox-w32-9fc5933b100694174071c7c4697c70095799bfd0.zip |
ntpd: fix a warning on 32-bit arch build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ntpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 93bd3189d..dcbdb8e60 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1632,7 +1632,7 @@ update_local_clock(peer_t *p) | |||
1632 | if (adjtimex(&tmx) < 0) | 1632 | if (adjtimex(&tmx) < 0) |
1633 | bb_simple_perror_msg_and_die("adjtimex"); | 1633 | bb_simple_perror_msg_and_die("adjtimex"); |
1634 | bb_error_msg("p adjtimex freq:%ld offset:%+ld status:0x%x tc:%ld", | 1634 | bb_error_msg("p adjtimex freq:%ld offset:%+ld status:0x%x tc:%ld", |
1635 | tmx.freq, tmx.offset, tmx.status, tmx.constant); | 1635 | (long)tmx.freq, (long)tmx.offset, tmx.status, (long)tmx.constant); |
1636 | } | 1636 | } |
1637 | 1637 | ||
1638 | memset(&tmx, 0, sizeof(tmx)); | 1638 | memset(&tmx, 0, sizeof(tmx)); |
@@ -1747,7 +1747,7 @@ update_local_clock(peer_t *p) | |||
1747 | * Not sure why. Perhaps it is normal. | 1747 | * Not sure why. Perhaps it is normal. |
1748 | */ | 1748 | */ |
1749 | VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x", | 1749 | VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x", |
1750 | rc, tmx.freq, tmx.offset, tmx.status); | 1750 | rc, (long)tmx.freq, (long)tmx.offset, tmx.status); |
1751 | G.kernel_freq_drift = tmx.freq / 65536; | 1751 | G.kernel_freq_drift = tmx.freq / 65536; |
1752 | VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d", | 1752 | VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d", |
1753 | p->p_dotted, | 1753 | p->p_dotted, |