From: Miroslav Lichvar Date: Mon, 3 Aug 2020 17:10:49 +0000 (+0200) Subject: test: fix compiler warning in ntp unit test X-Git-Tag: 4.0-pre3~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32fb8d41ca19751499da37a2a51e460ec4977ad7;p=thirdparty%2Fchrony.git test: fix compiler warning in ntp unit test --- diff --git a/test/unit/ntp_core.c b/test/unit/ntp_core.c index ac8aec35..63b2d55b 100644 --- a/test/unit/ntp_core.c +++ b/test/unit/ntp_core.c @@ -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;