diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-26 07:11:12 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-26 07:11:12 +0100 |
commit | 650a7011a8274dc5334ee8415bcaf77405c41200 (patch) | |
tree | 58a88a86bff2c0b895bbf2d76e81d632e2ca9766 /networking/ntpd.c | |
parent | 5b6fe34cee9ccb70e813a1c3844c8d35fb708cbe (diff) | |
download | busybox-w32-650a7011a8274dc5334ee8415bcaf77405c41200.tar.gz busybox-w32-650a7011a8274dc5334ee8415bcaf77405c41200.tar.bz2 busybox-w32-650a7011a8274dc5334ee8415bcaf77405c41200.zip |
ntpd: trivial -2 byte code optimization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r-- | networking/ntpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index e2c3506ed..156cad6cf 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -442,7 +442,7 @@ adjtime_wrap(void) | |||
442 | qsort(peers, offset_cnt, sizeof(peers[0]), offset_compare); | 442 | qsort(peers, offset_cnt, sizeof(peers[0]), offset_compare); |
443 | 443 | ||
444 | middle = offset_cnt / 2; | 444 | middle = offset_cnt / 2; |
445 | if ((offset_cnt & 1) == 0 && middle != 0) { | 445 | if (middle != 0 && (offset_cnt & 1) == 0) { |
446 | offset_median = (peers[middle-1]->update.offset + peers[middle]->update.offset) / 2; | 446 | offset_median = (peers[middle-1]->update.offset + peers[middle]->update.offset) / 2; |
447 | G.status.rootdelay = (peers[middle-1]->update.delay + peers[middle]->update.delay) / 2; | 447 | G.status.rootdelay = (peers[middle-1]->update.delay + peers[middle]->update.delay) / 2; |
448 | G.status.stratum = MAX(peers[middle-1]->update.status.stratum, peers[middle]->update.status.stratum); | 448 | G.status.stratum = MAX(peers[middle-1]->update.status.stratum, peers[middle]->update.status.stratum); |