Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
NTPsec
ntpsec
Commits
1eb045a0
Commit
1eb045a0
authored
Oct 04, 2016
by
Eric S. Raymond
Browse files
Eliminate struct timeval compuation from libparse/clk_trimtsip.c
parent
5cf1f9b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libparse/clk_trimtsip.c
View file @
1eb045a0
...
...
@@ -11,7 +11,7 @@
#include
"ntp_syslog.h"
#include
"ntp_types.h"
#include
"ntp_fp.h"
#include
"time
val
ops.h"
#include
"time
spec
ops.h"
#include
"ntp_calendar.h"
#include
"ntp_machine.h"
#include
"ntp_stdlib.h"
...
...
@@ -250,7 +250,7 @@ cvt_trimtsip(
clock_time
->
utctime
=
gpstime
.
l_ui
-
JAN_1970
;
TSFTOTVU
(
gpstime
.
l_uf
,
clock_time
->
usecond
)
;
clock_time
->
usecond
=
lfp_intv_to_tspec
(
gpstime
).
tv_nsec
/
1000
;
if
(
t
->
t_leap
==
ADDSECOND
)
clock_time
->
flags
|=
PARSEB_LEAPADD
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment