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
963bd1c9
Commit
963bd1c9
authored
Feb 23, 2017
by
Alessandro Rubini
Committed by
Adam Wujek
Mar 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg.c: fix two (likely unused) math conversions
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
8ffdf32f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
msg.c
proto-standard/msg.c
+2
-2
No files found.
proto-standard/msg.c
View file @
963bd1c9
...
...
@@ -199,7 +199,7 @@ void msg_unpack_announce(void *buf, MsgAnnounce *ann)
ann
->
originTimestamp
.
secondsField
.
lsb
=
htonl
(
*
(
UInteger32
*
)
(
buf
+
36
));
ann
->
originTimestamp
.
nanosecondsField
=
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
))
<<
16
;
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
ann
->
currentUtcOffset
=
htons
(
*
(
UInteger16
*
)
(
buf
+
44
));
ann
->
grandmasterPriority1
=
*
(
UInteger8
*
)
(
buf
+
47
);
ann
->
grandmasterClockQuality
.
clockClass
=
...
...
@@ -394,7 +394,7 @@ void msg_unpack_delay_req(void *buf, MsgDelayReq *delay_req)
nsecs
=
htonl
(
*
(
UInteger32
*
)
(
buf
+
40
));
delay_req
->
originTimestamp
.
secs
=
secs
;
delay_req
->
originTimestamp
.
scaled_nsecs
=
nsecs
;
delay_req
->
originTimestamp
.
scaled_nsecs
=
nsecs
<<
16
;
;
}
/* Unpack PDelayReq message from in buffer of ppi to internal structure */
...
...
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