diff options
author | Cristian Ionescu-Idbohrn <cii@axis.com> | 2011-05-16 03:53:00 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-05-16 03:53:00 +0200 |
commit | 662972a77acdd10357f6cbdba228d707bbdc02ed (patch) | |
tree | b3b6951ed25bfe963497c458ed25b07c83c6d7ac /networking/ntpd.c | |
parent | 6afc6775e8b57ff275b9c0919c107d739cdf0b7c (diff) | |
download | busybox-w32-662972a77acdd10357f6cbdba228d707bbdc02ed.tar.gz busybox-w32-662972a77acdd10357f6cbdba228d707bbdc02ed.tar.bz2 busybox-w32-662972a77acdd10357f6cbdba228d707bbdc02ed.zip |
The [-Wunused-but-set-variable] warnings
networking/ntpd.c:1748:19: warning: variable 'version' set but not used
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ntpd.c')
-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 e27dbaa6b..165673a1e 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1745,7 +1745,7 @@ static NOINLINE void | |||
1745 | recv_and_process_client_pkt(void /*int fd*/) | 1745 | recv_and_process_client_pkt(void /*int fd*/) |
1746 | { | 1746 | { |
1747 | ssize_t size; | 1747 | ssize_t size; |
1748 | uint8_t version; | 1748 | //uint8_t version; |
1749 | len_and_sockaddr *to; | 1749 | len_and_sockaddr *to; |
1750 | struct sockaddr *from; | 1750 | struct sockaddr *from; |
1751 | msg_t msg; | 1751 | msg_t msg; |
@@ -1793,7 +1793,7 @@ recv_and_process_client_pkt(void /*int fd*/) | |||
1793 | msg.m_rootdelay = d_to_sfp(G.rootdelay); | 1793 | msg.m_rootdelay = d_to_sfp(G.rootdelay); |
1794 | //simple code does not do this, fix simple code! | 1794 | //simple code does not do this, fix simple code! |
1795 | msg.m_rootdisp = d_to_sfp(G.rootdisp); | 1795 | msg.m_rootdisp = d_to_sfp(G.rootdisp); |
1796 | version = (query_status & VERSION_MASK); /* ... >> VERSION_SHIFT - done below instead */ | 1796 | //version = (query_status & VERSION_MASK); /* ... >> VERSION_SHIFT - done below instead */ |
1797 | msg.m_refid = G.refid; // (version > (3 << VERSION_SHIFT)) ? G.refid : G.refid3; | 1797 | msg.m_refid = G.refid; // (version > (3 << VERSION_SHIFT)) ? G.refid : G.refid3; |
1798 | 1798 | ||
1799 | /* We reply from the local address packet was sent to, | 1799 | /* We reply from the local address packet was sent to, |