diff options
author | Bartosz Golaszewski <bartekgola@gmail.com> | 2014-01-18 15:36:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-20 03:21:08 +0100 |
commit | 76ad7481b1697b9eb99286259395050f3169e7e8 (patch) | |
tree | bda65fe6ad803a75ca0fa3fe87c51408d70f94aa | |
parent | 5c13ab41bb9472b792797a339f93a3a3ca62fd7a (diff) | |
download | busybox-w32-76ad7481b1697b9eb99286259395050f3169e7e8.tar.gz busybox-w32-76ad7481b1697b9eb99286259395050f3169e7e8.tar.bz2 busybox-w32-76ad7481b1697b9eb99286259395050f3169e7e8.zip |
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>
-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 c4b018778..f1f99bb2b 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1328,7 +1328,9 @@ update_local_clock(peer_t *p) | |||
1328 | #if !USING_KERNEL_PLL_LOOP | 1328 | #if !USING_KERNEL_PLL_LOOP |
1329 | double freq_drift; | 1329 | double freq_drift; |
1330 | #endif | 1330 | #endif |
1331 | #if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION | ||
1331 | double since_last_update; | 1332 | double since_last_update; |
1333 | #endif | ||
1332 | double etemp, dtemp; | 1334 | double etemp, dtemp; |
1333 | 1335 | ||
1334 | abs_offset = fabs(offset); | 1336 | abs_offset = fabs(offset); |
@@ -1356,7 +1358,9 @@ update_local_clock(peer_t *p) | |||
1356 | * action is and defines how the system reacts to large time | 1358 | * action is and defines how the system reacts to large time |
1357 | * and frequency errors. | 1359 | * and frequency errors. |
1358 | */ | 1360 | */ |
1361 | #if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION | ||
1359 | since_last_update = recv_time - G.reftime; | 1362 | since_last_update = recv_time - G.reftime; |
1363 | #endif | ||
1360 | #if !USING_KERNEL_PLL_LOOP | 1364 | #if !USING_KERNEL_PLL_LOOP |
1361 | freq_drift = 0; | 1365 | freq_drift = 0; |
1362 | #endif | 1366 | #endif |