Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • selsky/ntpsec
  • armbiant/gnome-ntpsec
  • smallm/ntpsec
  • devicenull/ntpsec
  • paelzer/ntpsec
  • mvangund/ntpsec
  • fe051/ntpsec
  • ollie314/ntpsec
  • rlaager/ntpsec
  • fhgwright/ntpsec
  • phirephly/ntpsec
  • Omnifarious/ntpsec
  • ghane/ntpsec
  • antranigv/ntpsec
  • pakarsolusitelematika/ntpsec
  • ianbruene/ntpsec
  • wingel/ntpsec
  • katyaBeck/ntpsec
  • akumiszcza/ntpsec
  • rouing/ntpsec
  • NTPsec/ntpsec
  • mlichvar/ntpsec
  • ktims/ntpsec
  • fararano.kevin/ntpsec
  • phillipcharleshart/ntpsec
  • SPACE001/ntpsec
  • thomasdstewart/ntpsec
  • testsleeek/ntpsec
  • NeatNerdPrime/ntpsec
  • marcinbrodowski35/ntpsec
  • AbbasDev/ntpsec
  • jurgen.xhelo/ntpsec
  • Wan10/ntpsec
  • BrnoPCmaniak/ntpsec
  • anastrophe/ntpsec
  • georgyo/ntpsec
  • mikie.simpson/ntpsec
  • OptimalRanging/ntpsec
  • toofishes/ntpsec
  • Jandrusk/ntpsec
  • sdwalker/ntpsec
  • mnordhoff/ntpsec
  • cjmayo/ntpsec
  • micromax/ntpsec
  • tychotithonus/ntpsec
  • ddrown/ntpsec
  • brendanbank/ntpsec
  • jh23453/ntpsec
  • samifarin/ntpsec
  • miller24joseph/ntpsec
  • AZDNice/ntpsec
  • lnceballos/ntpsec
  • gabriel-ku/ntpsec
  • psreport/ntpsec
  • thesamesam/ntpsec
  • alexk7/ntpsec
  • RRZEFox/ntpsec
  • m_by/ntpsec
  • jameshilliard/ntpsec
  • daemoneye/ntpsec
  • xgerault/ntpsec
  • permanent-vacations/ntpsec
  • o.zeynalpour/ntpsec
  • ravi.love.nippy/ntpsec
  • jhamlin96/ntpsec
  • abaehr/ntpsec
  • accidentallythecable-public/forks/ntpsec
  • james.jstroud/ntpsec
  • youwt19821020/ntpsec-no-root
  • jamesb_fe80/ntpsec
  • demsjf8/ntpsec
  • yegorich/ntpsec
  • 1963bib/ntpsec
  • armbiant/gnome-ntp
  • chucalu/ntpsec
  • folkertvanheusden/ntpsec
  • mktyler/ntpsec
  • 19bcs2794/ntpsec
  • LOCNNIL/ntpsec
  • lifeofguenter/ntpsec
  • trv-n/ntpsec-trimble-3
  • szepeviktor/ntpsec
  • lightswitch05/ntpsec
  • m_msft/ntpsec
84 results
Show changes
Commits on Source (3)
......@@ -157,7 +157,9 @@ bool ntp_enable = true; /* clock discipline enabled */
bool pll_control = false; /* kernel support available */
bool kern_enable = true; /* kernel support enabled */
bool hardpps_enable; /* kernel PPS discipline enabled */
#ifdef HAVE_KERNEL_PLL
static bool ext_enable; /* external clock enabled */
#endif /* HAVE_KERNEL_PLL */
bool allow_panic = false; /* allow panic correction (-g) */
bool force_step_once = false; /* always step time once at startup (-G) */
bool mode_ntpdate = false; /* exit on first clock set (-q) */
......@@ -167,7 +169,9 @@ static int freq_set; /* initial set frequency switch */
/*
* Clock state machine variables
*/
#ifndef ENABLE_LOCKCLOCK
static int state = 0; /* clock discipline state */
#endif /* ENABLE_LOCKCLOCK */
uint8_t sys_poll; /* time constant/poll (log2 s) */
int tc_counter; /* jiggle counter */
double last_offset; /* last offset (s) */
......
......@@ -658,6 +658,7 @@ oncore_start(
if (stat(device1, &stat1)) {
oncore_log_f(instance, LOG_ERR, "Can't stat fd1 (%s)",
device1);
free(instance);
return false; /* exit, no file, can't start driver */
}
......
......@@ -127,52 +127,52 @@ TEST(binio, get_lsb_int324) {
TEST(binio, put_lsb_uint160) {
unsigned char ret[2] = { 0, 0};
unsigned char exp[2] = { 0, 0};
unsigned char expect[2] = { 0, 0};
unsigned char *bp = &ret[0];
put_lsb_uint16( &bp, 0);
TEST_ASSERT_EQUAL_HEX8_ARRAY( exp, ret, 2 );
TEST_ASSERT_EQUAL_HEX8_ARRAY( expect, ret, 2 );
}
TEST(binio, put_lsb_uint161) {
unsigned char ret[2] = { 0, 0};
unsigned char exp[2] = { 1, 0};
unsigned char expect[2] = { 1, 0};
unsigned char *bp = &ret[0];
put_lsb_uint16( &bp, 1);
TEST_ASSERT_EQUAL_HEX8_ARRAY( exp, ret, 2 );
TEST_ASSERT_EQUAL_HEX8_ARRAY( expect, ret, 2 );
}
TEST(binio, put_lsb_uint162) {
unsigned char ret[2] = { 0, 0};
unsigned char exp[2] = { 0, 1};
unsigned char expect[2] = { 0, 1};
unsigned char *bp = &ret[0];
put_lsb_uint16( &bp, 256);
TEST_ASSERT_EQUAL_HEX8_ARRAY( exp, ret, 2 );
TEST_ASSERT_EQUAL_HEX8_ARRAY( expect, ret, 2 );
}
TEST(binio, put_lsb_uint163) {
unsigned char ret[2] = { 0, 0};
unsigned char exp[2] = { 0xff, 0xff };
unsigned char expect[2] = { 0xff, 0xff };
unsigned char *bp = &ret[0];
put_lsb_uint16( &bp, 0xffff);
TEST_ASSERT_EQUAL_HEX8_ARRAY( exp, ret, 2 );
TEST_ASSERT_EQUAL_HEX8_ARRAY( expect, ret, 2 );
}
TEST(binio, put_lsb_uint164) {
unsigned char ret[2] = { 0, 0};
unsigned char exp[2] = { 1, 0x80};
unsigned char expect[2] = { 1, 0x80};
unsigned char *bp = &ret[0];
put_lsb_uint16( &bp, 0x8001);
TEST_ASSERT_EQUAL_HEX8_ARRAY( exp, ret, 2 );
TEST_ASSERT_EQUAL_HEX8_ARRAY( expect, ret, 2 );
}
......