[Git][NTPsec/ntpsec][master] Remove unused dummy current_time from tests

Hal Murray gitlab at mg.gitlab.com
Sun Sep 25 19:07:40 UTC 2016


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
310f5a28 by Hal Murray at 2016-09-25T12:06:59-07:00
Remove unused dummy current_time from tests

- - - - -


2 changed files:

- tests/common/caltime.c
- tests/libntp/tstotv.c


Changes:

=====================================
tests/common/caltime.c
=====================================
--- a/tests/common/caltime.c
+++ b/tests/common/caltime.c
@@ -5,7 +5,6 @@
 #include "ntp_stdlib.h"
 #include "ntp_calendar.h"
 
-u_long current_time = 4;
 time_t nowtime = 0;
 
 time_t timefunc(time_t *ptr) {


=====================================
tests/libntp/tstotv.c
=====================================
--- a/tests/libntp/tstotv.c
+++ b/tests/libntp/tstotv.c
@@ -13,8 +13,6 @@ TEST_SETUP(tstotv) {}
 
 TEST_TEAR_DOWN(tstotv) {}
 
-u_long      current_time;
-
 static bool IsEqual(const struct timeval *expected, const struct timeval *actual) {
 	if (expected->tv_sec == actual->tv_sec &&
 		expected->tv_usec == actual->tv_usec) {



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/310f5a28d388abee96781306ec1a9bcdb6f43b9a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160925/8567699c/attachment.html>


More information about the vc mailing list