diff options
author | Bartosz Golaszewski | 2014-01-18 15:36:27 +0100 |
---|---|---|
committer | Denys Vlasenko | 2014-01-20 03:21:08 +0100 |
commit | 76ad7481b1697b9eb99286259395050f3169e7e8 (patch) | |
tree | bda65fe6ad803a75ca0fa3fe87c51408d70f94aa /networking | |
parent | 5c13ab41bb9472b792797a339f93a3a3ca62fd7a (diff) | |
download | busybox-76ad7481b1697b9eb99286259395050f3169e7e8.zip busybox-76ad7481b1697b9eb99286259395050f3169e7e8.tar.gz |
ntpd: fix compilation warnings
GCC complained about since_last_update being set but not used.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ntpd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index c4b0187..f1f99bb 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -1328,7 +1328,9 @@ update_local_clock(peer_t *p) #if !USING_KERNEL_PLL_LOOP double freq_drift; #endif +#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION double since_last_update; +#endif double etemp, dtemp; abs_offset = fabs(offset); @@ -1356,7 +1358,9 @@ update_local_clock(peer_t *p) * action is and defines how the system reacts to large time * and frequency errors. */ +#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION since_last_update = recv_time - G.reftime; +#endif #if !USING_KERNEL_PLL_LOOP freq_drift = 0; #endif |