1 /* $NetBSD: sntptest.c,v 1.3 2024/08/18 20:47:26 christos Exp $ */ 2 3 4 #include "config.h" 5 #include "sntptest.h" 6 7 void 8 sntptest(void) { 9 optionSaveState(&sntpOptions); 10 } 11 12 13 void 14 sntptest_destroy(void) { 15 optionRestore(&sntpOptions); 16 } 17 18 19 void 20 ActivateOption(const char* option, const char* argument) { 21 22 const int ARGV_SIZE = 4; 23 24 char* opts[ARGV_SIZE]; 25 26 opts[0] = estrdup("sntpopts"); 27 opts[1] = estrdup(option); 28 opts[2] = estrdup(argument); 29 opts[3] = estrdup("127.0.0.1"); 30 31 optionProcess(&sntpOptions, COUNTOF(opts), opts); 32 } 33 34