also removed progname and current_time var
testcalshims.c:
removed progname and current_time var
bk: 557a9944uecKt-i6GQeqPweDVQ2wxw
/* 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
#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)
{
* 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;
#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;