Commit 13e4a0cf authored by Jean-Claude BAU's avatar Jean-Claude BAU

Remove hack: Use tai field

Due to C library changes the tai field is now available in the structure
timex,
parent 3436fdc8
......@@ -242,14 +242,7 @@ int main(int argc, char **argv)
/* Set offset here, so config parsing can override it */
memset(&t, 0, sizeof(t));
if (adjtimex(&t) >= 0) {
int *p;
/*
* Our WRS kernel has tai support, but our compiler does not.
* We are 32-bit only, and we know for sure that tai is
* exactly after stbcnt. It's a bad hack, but it works
*/
p = (int *)(&t.stbcnt) + 1;
ppg->timePropertiesDS->currentUtcOffset = (Integer16)*p;
ppg->timePropertiesDS->currentUtcOffset = (Integer16)t.tai;
}
if (pp_parse_cmdline(ppg, argc, argv) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment