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>
This commit is contained in:
parent
6afc6775e8
commit
662972a77a
@ -1745,7 +1745,7 @@ static NOINLINE void
|
|||||||
recv_and_process_client_pkt(void /*int fd*/)
|
recv_and_process_client_pkt(void /*int fd*/)
|
||||||
{
|
{
|
||||||
ssize_t size;
|
ssize_t size;
|
||||||
uint8_t version;
|
//uint8_t version;
|
||||||
len_and_sockaddr *to;
|
len_and_sockaddr *to;
|
||||||
struct sockaddr *from;
|
struct sockaddr *from;
|
||||||
msg_t msg;
|
msg_t msg;
|
||||||
@ -1793,7 +1793,7 @@ recv_and_process_client_pkt(void /*int fd*/)
|
|||||||
msg.m_rootdelay = d_to_sfp(G.rootdelay);
|
msg.m_rootdelay = d_to_sfp(G.rootdelay);
|
||||||
//simple code does not do this, fix simple code!
|
//simple code does not do this, fix simple code!
|
||||||
msg.m_rootdisp = d_to_sfp(G.rootdisp);
|
msg.m_rootdisp = d_to_sfp(G.rootdisp);
|
||||||
version = (query_status & VERSION_MASK); /* ... >> VERSION_SHIFT - done below instead */
|
//version = (query_status & VERSION_MASK); /* ... >> VERSION_SHIFT - done below instead */
|
||||||
msg.m_refid = G.refid; // (version > (3 << VERSION_SHIFT)) ? G.refid : G.refid3;
|
msg.m_refid = G.refid; // (version > (3 << VERSION_SHIFT)) ? G.refid : G.refid3;
|
||||||
|
|
||||||
/* We reply from the local address packet was sent to,
|
/* We reply from the local address packet was sent to,
|
||||||
|
Loading…
Reference in New Issue
Block a user