From: Damir Tomic Date: Fri, 12 Jun 2015 08:33:08 +0000 (+0200) Subject: testcalshims.h: X-Git-Tag: NTP_4_3_40~6^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aabf9635a147dd1d4a0525cdae55d3c21602a80a;p=thirdparty%2Fntp.git testcalshims.h: also removed progname and current_time var testcalshims.c: removed progname and current_time var bk: 557a9944uecKt-i6GQeqPweDVQ2wxw --- diff --git a/tests/libntp/authkeys.c b/tests/libntp/authkeys.c index bc5883e5e..1fbb8e3c1 100644 --- a/tests/libntp/authkeys.c +++ b/tests/libntp/authkeys.c @@ -1,7 +1,7 @@ /* This file contains test for both libntp/authkeys.c and libntp/authusekey.c */ #include "config.h" -#include "testcalshims.h" +//#include "testcalshims.h" #include "unity.h" #ifdef OPENSSL @@ -12,6 +12,8 @@ #include "ntp.h" #include "ntp_stdlib.h" +u_long current_time = 4; + // old code from google test framework, moved to SetUp() for unity void setUp(void) { diff --git a/tests/libntp/testcalshims.c b/tests/libntp/testcalshims.c index 563a2f389..da59ecb34 100644 --- a/tests/libntp/testcalshims.c +++ b/tests/libntp/testcalshims.c @@ -4,8 +4,8 @@ * and that is normally defined in ntpd/ntpq/... */ -u_long current_time = 4; // needed by authkeys. Used only in to calculate lifetime. -const char *progname = "libntptest"; +//u_long current_time = 4; // needed by authkeys. Used only in to calculate lifetime. +//const char *progname = "libntptest"; //static //should be static in c static time_t nowtime = 0; diff --git a/tests/libntp/testcalshims.h b/tests/libntp/testcalshims.h index 8d6cbea2b..bd4c681ac 100644 --- a/tests/libntp/testcalshims.h +++ b/tests/libntp/testcalshims.h @@ -4,8 +4,8 @@ #include "ntp_stdlib.h" #include "ntp_calendar.h" -u_long current_time = 4; // needed by authkeys. Used only in to calculate lifetime. -const char *progname = "libntptest"; +//u_long current_time = 4; // needed by authkeys. Used only in to calculate lifetime. +//const char *progname = "libntptest"; static time_t timefunc(time_t*); static time_t nowtime;