summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/sntp/tests/sntptest.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/tests/sntptest.h')
-rw-r--r--contrib/ntp/sntp/tests/sntptest.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/contrib/ntp/sntp/tests/sntptest.h b/contrib/ntp/sntp/tests/sntptest.h
index eff6f6e..82e2562 100644
--- a/contrib/ntp/sntp/tests/sntptest.h
+++ b/contrib/ntp/sntp/tests/sntptest.h
@@ -4,28 +4,8 @@
#include "ntp_stdlib.h"
#include "sntp-opts.h"
-
-sntptest() {
- optionSaveState(&sntpOptions);
-}
-
-sntptest_destroy() {
- optionRestore(&sntpOptions);
-}
-
-void ActivateOption(const char* option, const char* argument) {
-
- const int ARGV_SIZE = 4;
-
- char* opts[ARGV_SIZE];
-
- opts[0] = estrdup("sntpopts");
- opts[1] = estrdup(option);
- opts[2] = estrdup(argument);
- opts[3] = estrdup("127.0.0.1");
-
- optionProcess(&sntpOptions, ARGV_SIZE, opts);
-}
-
+void sntptest(void);
+void sntptest_destroy(void);
+void ActivateOption(const char* option, const char* argument);
#endif // SNTPTEST_H
OpenPOWER on IntegriCloud