You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/14 15:02:04 UTC

[incubator-nuttx-apps] 01/03: ntpclient: the 2nd arg of MKLVM should be version number

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch pr71
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 782953ff05692659c9875ac6e88346852400508c
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Feb 14 17:22:46 2020 +0800

    ntpclient: the 2nd arg of MKLVM should be version number
    
    Change-Id: I742c3a5082f48fcc8e291100ff81c60093bc7538
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 netutils/ntpclient/ntpclient.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netutils/ntpclient/ntpclient.c b/netutils/ntpclient/ntpclient.c
index 9e6b328..dc8cb60 100644
--- a/netutils/ntpclient/ntpclient.c
+++ b/netutils/ntpclient/ntpclient.c
@@ -409,7 +409,7 @@ static int ntpc_daemon(int argc, char **argv)
       /* Format the transmit datagram */
 
       memset(&pkt, 0, sizeof(pkt));
-      pkt.lvm = MKLVM(0, 3, NTP_VERSION);
+      pkt.lvm = MKLVM(0, NTP_VERSION, 3);
 
       sinfo("Sending a NTP packet\n");