Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Software for White Rabbit PTP Core
Commits
8f57a255
Commit
8f57a255
authored
12 years ago
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests/measure_t24p: dummy initialization so that gcc won't complain
parent
28a5e429
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/measure_t24p.c
+2
-3
2 additions, 3 deletions
tests/measure_t24p.c
with
2 additions
and
3 deletions
tests/measure_t24p.c
+
2
−
3
View file @
8f57a255
...
...
@@ -45,7 +45,7 @@ static int meas_phase_range(wr_socket_t * sock, int phase_min, int phase_max,
int
phase_step
,
struct
meas_entry
*
results
)
{
char
buf
[
128
];
wr_timestamp_t
ts_rx
,
ts_sync
;
wr_timestamp_t
ts_rx
,
ts_sync
=
{
0
,}
;
wr_sockaddr_t
from
;
MsgHeader
mhdr
;
int
setpoint
=
phase_min
,
i
=
0
,
phase
;
...
...
@@ -56,7 +56,6 @@ static int meas_phase_range(wr_socket_t * sock, int phase_min, int phase_max,
purge_socket
(
sock
);
i
=
0
;
ts_sync
.
correct
=
0
;
while
(
setpoint
<=
phase_max
)
{
ptpd_netif_get_dmtd_phase
(
sock
,
&
phase
);
...
...
@@ -67,7 +66,7 @@ static int meas_phase_range(wr_socket_t * sock, int phase_min, int phase_max,
msgUnpackHeader
(
buf
,
&
mhdr
);
if
(
mhdr
.
messageType
==
0
)
ts_sync
=
ts_rx
;
else
if
(
mhdr
.
messageType
==
8
&&
ts_sync
.
correct
==
1
)
{
else
if
(
mhdr
.
messageType
==
8
&&
ts_sync
.
correct
)
{
MsgFollowUp
fup
;
msgUnpackFollowUp
(
buf
,
&
fup
);
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment