Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
6c05e20c
Commit
6c05e20c
authored
Aug 09, 2017
by
Sven Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utc: handling of flags fixed, have to be reset as well
parent
3b65bd48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
bmc.c
proto-standard/bmc.c
+1
-1
unix-time.c
time-unix/unix-time.c
+9
-0
No files found.
proto-standard/bmc.c
View file @
6c05e20c
...
...
@@ -183,7 +183,7 @@ void bmc_s1(struct pp_instance *ppi,
}
else
{
if
(((
leap59
!=
0
)
!=
((
frgn_master
->
flagField
[
1
]
&
FFB_LI59
)
!=
0
))
||
((
leap61
!=
0
)
!=
((
frgn_master
->
flagField
[
1
]
&
FFB_LI
59
)
!=
0
))
||
((
leap61
!=
0
)
!=
((
frgn_master
->
flagField
[
1
]
&
FFB_LI
61
)
!=
0
))
||
(
offset
!=
frgn_master
->
currentUtcOffset
))
{
prop
->
leap59
=
((
frgn_master
->
flagField
[
1
]
&
FFB_LI59
)
!=
0
);
prop
->
leap61
=
((
frgn_master
->
flagField
[
1
]
&
FFB_LI61
)
!=
0
);
...
...
time-unix/unix-time.c
View file @
6c05e20c
...
...
@@ -106,6 +106,15 @@ static int unix_time_set_utc_offset(struct pp_instance *ppi, int offset, int lea
pp_diag
(
ppi
,
time
,
1
,
"set leap second failed"
);
return
-
1
;
}
}
else
{
memset
(
&
t
,
0
,
sizeof
(
t
));
t
.
modes
=
MOD_STATUS
;
t
.
status
=
0
;
if
(
adjtimex
(
&
t
)
<
0
)
{
pp_diag
(
ppi
,
time
,
1
,
"clear leap second failed"
);
return
-
1
;
}
}
memset
(
&
t
,
0
,
sizeof
(
t
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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