]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix compiler warning in ntp unit test
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 3 Aug 2020 17:10:49 +0000 (19:10 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Aug 2020 10:24:51 +0000 (12:24 +0200)
test/unit/ntp_core.c

index ac8aec352431f7e139121d465de5665ddf406beb..63b2d55b4379a7ab510eb10d0501ba21d51264e9 100644 (file)
@@ -137,8 +137,8 @@ static void
 send_response(int interleaved, int authenticated, int allow_update, int valid_ts, int valid_auth)
 {
   NTP_Packet *req, *res;
+  uint32_t key_id = 0;
   int auth_len = 0;
-  uint32_t key_id;
 
   req = &req_buffer;
   res = &res_buffer;