[Git][NTPsec/ntpsec][master] Fix error on Fedora 22.

Amar Takhar gitlab at mg.gitlab.com
Wed Nov 25 20:44:58 UTC 2015


Amar Takhar pushed to branch master at NTPsec / ntpsec


Commits:
01a0add0 by Amar Takhar at 2015-11-25T15:44:00Z
Fix error on Fedora 22.

I marked it for looking at later on the stub fix won't hurt the test.

- - - - -


1 changed file:

- tests/libntp/a_md5encrypt.c


Changes:

=====================================
tests/libntp/a_md5encrypt.c
=====================================
--- a/tests/libntp/a_md5encrypt.c
+++ b/tests/libntp/a_md5encrypt.c
@@ -27,7 +27,7 @@ const char *packet = "ijklmnopqrstuvwx";
 const int packetLength = 16;
 const int keyIdLength = 4;
 const int digestLength = 16;
-const int totalLength = packetLength + keyIdLength + digestLength;
+const int totalLength = 36; //XXX: error: initializer element is not constant packetLength + keyIdLength + digestLength;
 const char *expectedPacket = "ijklmnopqrstuvwx\0\0\0\0\x0c\x0e\x84\xcf\x0b\xb7\xa8\x68\x8e\x52\x38\xdb\xbc\x1c\x39\x53";
 
 TEST(a_md5encrypt, Encrypt) {



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/01a0add0a7593cd65590b70e669b5af587710d49
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151125/a36889ef/attachment.html>


More information about the vc mailing list